Skip to content

Commit

Permalink
Run lint as separate ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 10, 2025
1 parent 6c457bf commit 397a11d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run node.js tests
name: Run JS tests
on:
- push
- pull_request
Expand All @@ -21,6 +21,18 @@ jobs:
- run: deno install
- run: deno task build
- run: deno --allow-env --allow-read --allow-write test/index.js
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm install
- run: npm run build --if-present
- run: npm run lint --if-present
node:
name: v${{ matrix.node }} @ ubuntu-latest
runs-on: ubuntu-latest
Expand All @@ -38,4 +50,3 @@ jobs:
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run lint --if-present

0 comments on commit 397a11d

Please sign in to comment.
  NODES
COMMUNITY 1
Note 1
Project 1
USERS 1