Skip to content

Commit 8d0f0c7

Browse files
committed
ci: add GitHub Actions workflow
Run lint, format check, typecheck, test, and build on push/PR to main.
1 parent 24e2114 commit 8d0f0c7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: npm
20+
21+
- run: npm ci
22+
23+
- name: Lint
24+
run: npm run lint
25+
26+
- name: Format check
27+
run: npm run format:check
28+
29+
- name: Typecheck
30+
run: tsc -b
31+
32+
- name: Test
33+
run: npm test
34+
35+
- name: Build
36+
run: npm run build

0 commit comments

Comments
 (0)