Skip to content

Commit 1881f80

Browse files
committed
Add CI workflow with linting, type checking, and tests
Set up GitHub Actions to run on pushes and PRs to master branch. Uses pnpm for package management.
1 parent 9d6b642 commit 1881f80

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Run linter
32+
run: pnpm run lint
33+
34+
- name: Run type check
35+
run: pnpm run type-check
36+
37+
- name: Run tests
38+
run: pnpm test

0 commit comments

Comments
 (0)