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@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.1
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
34 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
35
36 - name: Install dependencies
37 run: bun install --frozen-lockfile
38
39 - name: Format check
40 run: bun --bun run check
41
42 - name: Lint
43 run: bun --bun run lint
44
45 - name: Typecheck
46 run: bun run typecheck
47
48 # The committed client must match the spec (PLAN.md task 7.4).
49 - name: Client drift check
50 run: bun run check:client
51
52 # Plain `bun run` (no --bun): vitest must run under node — bun's ws shim
53 # lacks the 'upgrade' event the cloudflare workers pool needs.
54 - name: Test
55 run: bun run test
56
57 - name: Build
58 run: bun --bun run build