Skip to content

Commit 2a27d8f

Browse files
committed
ci: add intial build and test workflow
1 parent 2c0ce01 commit 2a27d8f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
check:
10+
name: Build and test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [20.x, 22.x, 24.x, 26.x]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: true
19+
20+
- uses: actions/setup-node@v6
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: npm
24+
25+
- run: npm ci
26+
27+
- run: npm run format:check
28+
- run: npm run lint
29+
- run: npm run typecheck
30+
- run: npm run check:error-codes
31+
- run: npm test

0 commit comments

Comments
 (0)