Skip to content

Commit fff0ace

Browse files
karlwaldmanclaude
andcommitted
ci: Add test pipeline for Node 18/20/22
Run TypeScript build check and vitest on every push/PR across Node 18, 20, and 22. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f06837e commit fff0ace

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Node SDK
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test (Node ${{ matrix.node-version }})
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
node-version: ["18", "20", "22"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: TypeScript build check
30+
run: npm run build
31+
32+
- name: Run tests
33+
run: npm test

0 commit comments

Comments
 (0)