Skip to content

Commit

Permalink
Merge pull request #3 from vechain/add-gh-workflow-linter
Browse files Browse the repository at this point in the history
Add lint gh workflow
  • Loading branch information
fabiorigam authored Oct 22, 2024
2 parents 6bf253e + bee014c commit 0eb724e
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on:
workflow_call:

jobs:
build:
name: Build & Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install & Patch packages
run: yarn install

- name: Lint
run: yarn lint
12 changes: 12 additions & 0 deletions .github/workflows/on-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Main CI

on:
push:
branches:
- 'main'
- 'main-*'

jobs:
install-lint:
uses: ./.github/workflows/lint.yml
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: PR Checks

on:
pull_request:
branches:
- main

jobs:
install-lint:
uses: ./.github/workflows/lint.yml
secrets: inherit

0 comments on commit 0eb724e

Please sign in to comment.