Open History to see the last commit
1name: CI
2
3on:
4 push:
5 branches: [main]
6 pull_request:
7 workflow_call:
8 # The release job dispatches this on the Version Packages PR: PRs opened
9 # with GITHUB_TOKEN start no pull_request runs, and `ci` is a required check.
10 workflow_dispatch:
11
12permissions:
13 contents: read
14
15jobs:
16 zizmor:
17 runs-on: ubuntu-latest
18 steps:
19 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20 with:
21 persist-credentials: false
22
23 - uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
24 with:
25 advanced-security: false
26
27 ci:
28 runs-on: ubuntu-latest
29 steps:
30 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31 with:
32 persist-credentials: false
33 # Full history so the changeset check can diff against origin/main.
34 fetch-depth: 0
35
36 - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
37 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
38 with:
39 node-version: 24
40 cache: pnpm
41
42 - name: Install dependencies
43 run: pnpm install --frozen-lockfile
44
45 - name: Format check
46 run: pnpm run check
47
48 - name: Lint
49 run: pnpm run lint
50
51 - name: Typecheck
52 run: pnpm run typecheck
53
54 # A PR that changes a published package (packages/*, including the
55 # generated client) needs a changeset, or `pnpm exec changeset --empty`.
56 # Renovate can't write changesets; the Version Packages PR consumes them.
57 - name: Changeset check
58 if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]' && github.head_ref != 'changeset-release/main'
59 run: pnpm exec changeset status --since=origin/main
60
61 # The committed client must match the spec (PLAN.md task 7.4).
62 - name: Client drift check
63 run: pnpm run check:client
64
65 - name: Test
66 run: pnpm run test
67
68 - name: Build
69 run: pnpm run build