This repository was archived by the owner on Sep 27, 2026. It is now read-only.
Repository navigation
79 lines (77 loc) · 3.16 KB
/
Copy pathci.yml
File metadata and controls
79 lines (77 loc) · 3.16 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
76
77
78
79
name: ci
on:
push:
branches: [main]
pull_request:
# A newer push to a PR supersedes its older run; main runs are never
# cancelled, so every commit on main keeps its own verdict.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
TURBO_TELEMETRY_DISABLED: '1'
jobs:
checks:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# --affected diffs the PR head against its base sha.
fetch-depth: 0
# Pinned: deck's core/generated-fresh.test.ts and tui-kit's codegen gate
# byte-compare committed artifacts against a live rebuild, and bun's
# bundler/minifier output is not stable across bun versions. Bump this
# pin only together with the local bun upgrade that regenerates those
# committed files.
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.4.2'
- run: bun install --frozen-lockfile
# --frozen-lockfile passes a stale workspace package version, which every
# worktree's ready-step install then rewrites and leaves as dirt.
- run: bun install && git diff --exit-code -- bun.lock
# A PR restores main's newest cache; main restores its own previous one
# (a PR's cache is never visible to main). Every run saves, so entries
# older than a week are dropped first or compiled binaries pile up.
- uses: actions/cache@v4
with:
path: .git/turbo-cache
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: turbo-${{ runner.os }}-
- run: find .git/turbo-cache -type f -mtime +7 -delete 2>/dev/null || true
- if: github.event_name == 'pull_request'
run: scripts/turbo.sh check --affected --concurrency=4 --output-logs=errors-only
env:
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
- if: github.event_name != 'pull_request'
run: scripts/turbo.sh check --concurrency=4 --output-logs=errors-only
# deck supervises launchd and shells to plutil, both macOS-only, so its
# suite runs here and nowhere else (scripts/turbo.sh drops it off macOS).
deck-macos:
runs-on: macos-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.4.2'
- run: bun install --frozen-lockfile
- uses: actions/cache@v4
with:
path: .git/turbo-cache
key: turbo-${{ runner.os }}-${{ github.sha }}
restore-keys: turbo-${{ runner.os }}-
- run: find .git/turbo-cache -type f -mtime +7 -delete 2>/dev/null || true
- if: github.event_name == 'pull_request'
run: scripts/turbo.sh test --filter=deck --affected --output-logs=errors-only
env:
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
- if: github.event_name != 'pull_request'
run: scripts/turbo.sh test --filter=deck --output-logs=errors-only