Skip to content

Commit

Permalink
Add a github action for linting and prettying
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Oct 22, 2024
1 parent 11c995d commit 3cc64fb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/code-syntax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Code Syntax
on:
push:
branches:
- develop
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Compile contracts
run: npm run compile
- name: Run linter
run: npm run lint:check
pretty:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci
- name: Compile contracts
run: npm run compile
- name: Run prettier
run: npm run pretty:check

0 comments on commit 3cc64fb

Please sign in to comment.