Skip to content

Commit aab2cb5

Browse files
committed
chore: add automated lint + test
1 parent ff6a7dd commit aab2cb5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
jobs:
7+
build:
8+
name: 'Node.js build: fmt, ci, lint, test'
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version:
13+
- 20.x
14+
- latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm run fmt
22+
- run: npm ci
23+
- run: npm run lint
24+
- run: npm run test

0 commit comments

Comments
 (0)