Skip to content

Commit 1925662

Browse files
ci: add GitHub Actions workflow (build + test on Node 18/20/22)
Runs TypeScript compilation and all 49 tests on every push/PR to main. Tests across Node.js 18, 20, and 22 for compatibility verification. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 824653c commit 1925662

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18, 20, 22]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Install dependencies
25+
working-directory: packages/trail-core
26+
run: npm install
27+
28+
- name: Build
29+
working-directory: packages/trail-core
30+
run: npx tsc
31+
32+
- name: Run tests
33+
working-directory: packages/trail-core
34+
run: node --test dist/test/roundtrip.test.js

0 commit comments

Comments
 (0)