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 840e0b0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/code-syntax.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: 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: Run prettier
run: npm run pretty:check

0 comments on commit 840e0b0

Please sign in to comment.