Repository navigation
75 lines (59 loc) · 1.92 KB
/
Copy pathci.yml
File metadata and controls
75 lines (59 loc) · 1.92 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
push:
branches: [main, 'tds/**']
pull_request:
branches: [main]
workflow_dispatch:
# Read-only token: no job here needs to write to the repository.
permissions:
contents: read
jobs:
ci:
name: Check, Typecheck, Build
runs-on: ubuntu-latest
env:
TURBO_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Biome check
run: pnpm check
- name: Typecheck
run: pnpm typecheck
- name: Build
run: pnpm build
# CI-C1: unit tests are part of CI, which the deploy workflow gates on —
# so a regression in auth/links/redirect can no longer auto-deploy.
- name: Test
run: pnpm test
# Deploy scripts: local D1 migration scenarios plus smoke/verify checks.
# No Cloudflare credentials needed.
- name: Shellcheck deploy scripts
run: shellcheck .github/scripts/*.sh
- name: Test deploy scripts
run: node --test .github/scripts/test-d1-migrations.mjs .github/scripts/test-deploy-checks.mjs .github/scripts/test-waker-deploy.mjs
audit:
name: Dependency audit
runs-on: ubuntu-latest
# Blocking: react-router < 7.18.2 advisories are resolved, so a high+ audit
# finding should fail the run rather than let a vulnerable build deploy.
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
# Audits the lockfile against the advisory database; no install needed.
- name: pnpm audit (prod, high+)
run: pnpm audit --prod --audit-level=high