Skip to content

Commit 1577a53

Browse files
committed
ci: add GitHub Actions workflow
1 parent 29c8486 commit 1577a53

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.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+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: queryguard
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: pnpm
27+
cache-dependency-path: queryguard/pnpm-lock.yaml
28+
29+
- run: pnpm install --frozen-lockfile
30+
31+
- run: pnpm typecheck
32+
name: Type check
33+
34+
- run: pnpm lint
35+
name: Lint
36+
37+
- run: pnpm test
38+
name: Unit tests (128)
39+
40+
- run: pnpm build
41+
name: Build

0 commit comments

Comments
 (0)