Skip to content

Commit d2198dc

Browse files
meimakesclaude
andcommitted
Add GitHub Actions CI workflow
Runs lint, format check, build, and test on Node 20+22 for push/PR to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 29efe8a commit d2198dc

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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: [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+
cache: npm
24+
25+
- run: npm ci
26+
27+
- name: Lint
28+
run: npx eslint src/
29+
30+
- name: Format check
31+
run: npx prettier --check 'src/**/*.ts'
32+
33+
- name: Build
34+
run: npm run build
35+
36+
- name: Test
37+
run: npm test

0 commit comments

Comments
 (0)