Skip to content

Commit 2d4e06f

Browse files
authored
ci: add PR-triggered CI workflow (#44)
Adds a CI workflow running on pull_request and push to main so automated checks gate every code change (Vanta: github-code-change-automated-checks-enabled). Claude-Session: https://claude.ai/code/session_01LYL1ivhJKNwnHRCdTSuAom
1 parent 9e85499 commit 2d4e06f

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [22.x, 24.x]
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
# NOTE: `npm run lint` is omitted — the repo has a legacy .eslintrc.cjs
30+
# with ESLint >=9 installed, so eslint exits 2 until the config is
31+
# migrated to eslint.config.*. Type checking still runs below.
32+
33+
- name: Run type check
34+
run: npm run typecheck
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Run tests
40+
run: npm test

0 commit comments

Comments
 (0)