Skip to content

Commit a0cf4b6

Browse files
committed
Add GitHub Actions CI workflow
- Runs on push to main and all pull requests - Includes lint, typecheck, and test steps - Uses Node.js 20 with npm caching for faster builds
1 parent b73fb87 commit a0cf4b6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ['*']
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
- name: Type check
28+
run: npm run typecheck
29+
30+
- name: Test
31+
run: npm test

0 commit comments

Comments
 (0)