Skip to content

Commit 187d780

Browse files
committed
add Node LTS CI
1 parent 4d2d945 commit 187d780

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'agent/**'
8+
pull_request:
9+
branches:
10+
- master
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
quality:
17+
name: Node ${{ matrix.node }}
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
node: [22, 24]
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
28+
- name: Setup Node
29+
uses: actions/setup-node@v7
30+
with:
31+
node-version: ${{ matrix.node }}
32+
cache: npm
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Typecheck
38+
run: npm run typecheck
39+
40+
- name: Build
41+
run: npm run build
42+
43+
- name: Test
44+
run: npm test
45+
46+
- name: Validate npm package
47+
run: npm pack --dry-run

0 commit comments

Comments
 (0)