Skip to content

Commit 3bcc3f1

Browse files
committed
👷 add CI workflow for lint, format and tests
1 parent 3e05373 commit 3bcc3f1

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)