-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (37 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
50 lines (37 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Gates every PR (and push to main) on lint + typecheck + tests + build, so
# broken TS/config/templates never reach main silently — build-image.yml
# only builds after merge and doesn't run on pull requests.
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install poppler-utils (pdftoppm, used by PDF extraction tests)
run: sudo apt-get update && sudo apt-get install -y poppler-utils
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Nuxt types
run: pnpm exec nuxi prepare
- name: Production source size gate
run: find server components composables pages lib -type f \( -name '*.ts' -o -name '*.vue' -o -name '*.mjs' \) ! -path '*/migrations/*' ! -path '*/vendor/*' ! -name '*.test.*' ! -name '*.spec.*' -print0 | xargs -0 wc -l | awk '$2 != "total" && $1 > 500 { print; bad=1 } END { exit bad }'
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm exec nuxi typecheck
- name: Test
run: pnpm test
- name: Build
run: pnpm build