Skip to content

Commit c2b1ac3

Browse files
committed
Add CI checks for Node package
1 parent ac8c4af commit c2b1ac3

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
name: Node.js ${{ matrix.node-version }}
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
node-version:
21+
- 16.x
22+
- 18.x
23+
- 20.x
24+
- 22.x
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
35+
- name: Install dependencies
36+
run: npm install --no-package-lock
37+
38+
- name: Typecheck
39+
run: npm run typecheck
40+
41+
- name: Test
42+
run: npm test
43+
44+
- name: Verify package contents
45+
run: npm pack --dry-run

0 commit comments

Comments
 (0)