Skip to content

Commit b9561cd

Browse files
committed
feat(ci): add CI configuration for pull requests and pushes to main
1 parent 09acd59 commit b9561cd

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
# Cancel superseded runs for the same PR/branch to save CI minutes.
15+
concurrency:
16+
group: ci-${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
verify:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v6
24+
25+
# pnpm version comes from the "packageManager" field in package.json,
26+
# Node version from .nvmrc — same single sources of truth as the release.
27+
- uses: pnpm/action-setup@v4
28+
29+
- uses: actions/setup-node@v6
30+
with:
31+
node-version-file: ".nvmrc"
32+
cache: "pnpm"
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Type-check
38+
run: pnpm run typecheck
39+
40+
- name: Lint
41+
run: pnpm run lint
42+
43+
- name: Check formatting
44+
run: pnpm run format:check
45+
46+
- name: Test
47+
run: pnpm run test
48+
49+
- name: Build
50+
run: pnpm run build

0 commit comments

Comments
 (0)