Skip to content

Commit 1ff1040

Browse files
committed
build: Add Github CI workflow
1 parent 7a01980 commit 1ff1040

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
concurrency:
9+
group: ${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
ci:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version-file: '.nvmrc'
23+
cache: 'pnpm'
24+
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Check formatting
29+
run: pnpm format:check
30+
31+
- name: Lint
32+
run: pnpm lint
33+
34+
- name: Typecheck
35+
run: pnpm typecheck
36+
37+
- name: Test
38+
run: pnpm test
39+
40+
- name: Build
41+
run: pnpm build

0 commit comments

Comments
 (0)