Skip to content

Commit 986386c

Browse files
committed
ci: add CI pipeline
1 parent 0555de5 commit 986386c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/pr-test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: PR Test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
name: Test on ${{ matrix.os }} with Node ${{ matrix.node-version }}
10+
runs-on: ${{ matrix.os }}
11+
fail-fast: false
12+
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
node-version: [18.x, 20.x, 22.x, 24.x]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Lint
31+
run: npm run lint
32+
33+
- name: Type check
34+
run: npm run type:check
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Run tests
40+
run: npm run test:coverage
41+
42+
- name: Verify binary execution
43+
run: node dist/index.js

0 commit comments

Comments
 (0)