Skip to content

Commit 8f5b73d

Browse files
committed
ci: add lint
1 parent 58fc5aa commit 8f5b73d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/nodejs.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test JS
1+
name: Run JS tests
22

33
on:
44
- push
@@ -22,7 +22,19 @@ jobs:
2222
- run: deno install
2323
- run: deno run build
2424
- run: deno --allow-env --allow-write --allow-read index.test.js
25-
nodejs:
25+
lint:
26+
name: Lint
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
30+
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
31+
with:
32+
registry-url: 'https://registry.npmjs.org'
33+
cache: npm
34+
- run: npm install
35+
- run: npm run build --if-present
36+
- run: npm run lint --if-present
37+
node:
2638
name: Node v${{ matrix.version }} @ ${{ matrix.os }}
2739
runs-on: ${{ matrix.os }}
2840
strategy:

0 commit comments

Comments
 (0)