Skip to content

Commit 5963d1c

Browse files
efoutsclaude
andcommitted
feat: add CI workflow for pull request validation
- Runs on pull requests and main branch pushes - Tests across Node.js versions 18, 20, and 22 - Validates code with tests, coverage, linting, and benchmarks - Ensures quality before merging 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2ecff8c commit 5963d1c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18, 20, 22]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v2
26+
with:
27+
version: latest
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Run tests
33+
run: pnpm test
34+
35+
- name: Run tests with coverage
36+
run: pnpm run test:coverage
37+
38+
- name: Run linting
39+
run: pnpm run lint
40+
41+
- name: Run benchmarks
42+
run: pnpm run benchmark

0 commit comments

Comments
 (0)