Skip to content

Commit df54f03

Browse files
committed
ci: add typecheck, test, and build workflow on Node 18/20/22
1 parent e5a4aa8 commit df54f03

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
name: typecheck / test / build (Node ${{ matrix.node-version }})
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18, 20, 22]
17+
# Don't cancel the whole matrix if one version fails — see all failures at once
18+
fail-fast: false
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Type check
32+
run: npm run typecheck
33+
34+
- name: Test
35+
run: npm test
36+
37+
- name: Build
38+
run: npm run build

0 commit comments

Comments
 (0)