The matrix skipped itself on every PR: pr-checks.yml never fetched the baseline tags and never set DSH_REPO, so skipReasons() always reported a missing checkout and describe.skipIf dropped the whole per-baseline block — the registry apply, the wire keys, the checkpoint JSON gate, cold restore and every client seam probe. Only the release workflow fetched them, so the compatibility proof compatibility.md claims for "every pnpm test" was a no-op until a tag was cut. Both workflows now fetch the tags and export DSH_REPO, and a skip under CI fails the run instead of hiding behind green: a missing prerequisite there is a broken gate, not an absent one. The two test runs collapse into one, which also brings the lint gate the release workflow had and PRs did not. The matrix's own vocabulary guard compared a hand-copied constant against hand-copied baseline lists, so it could never see a drift in the fold — and had drifted: approval/asked, approval/decided and session/end-seed are folded but declared by no baseline. It now reads the fold's case labels out of src/host/fold.ts, so a new fold case cannot go unprobed, and the history probe pins the `records` envelope historyPage's rowsOf rejects without, not just the remote's service name.
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: PR Checks
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: pr-checks-${{ github.event.pull_request.number }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
pr-checks:
|
|
name: PR checks
|
|
runs-on: ubuntu-latest
|
|
environment: pr-checks
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
# No `packageManager` field in this plugin's package.json, so both
|
|
# workflows pin the version explicitly.
|
|
- uses: pnpm/action-setup@v6
|
|
with:
|
|
version: latest
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build
|
|
run: pnpm run build
|
|
|
|
- name: Lint
|
|
run: pnpm run lint
|
|
|
|
# The `compat` vitest project inside `pnpm test` boots the BUILT plugin
|
|
# against the REAL harness sources at every supported baseline tag
|
|
# (tests/baselines.ts is the source of truth — keep this fetch list in
|
|
# step when a baseline is added). It skips SILENTLY without the tags, so
|
|
# this fetch must sit BEFORE Test or a PR that breaks a seam goes green.
|
|
# Only the tags are fetched, so the clone stays shallow.
|
|
- name: Fetch the dsh baseline tags
|
|
run: |
|
|
mkdir -p .tmp/dsh-repo
|
|
cd .tmp/dsh-repo
|
|
git init -q
|
|
git remote add origin https://github.com/deepseek-ai/deepseek-harness.git
|
|
git fetch --depth 1 -q origin \
|
|
refs/tags/dsh-v0.1.7-rc.2:refs/tags/dsh-v0.1.7-rc.2 \
|
|
refs/tags/dsh-v0.2.0-rc.2:refs/tags/dsh-v0.2.0-rc.2
|
|
|
|
# One run covers everything: typecheck, all three vitest projects (host
|
|
# and client against src, compat against the BUILT plugin at each
|
|
# baseline tag), and the per-file coverage thresholds.
|
|
- name: Test
|
|
run: DSH_REPO="$PWD/.tmp/dsh-repo" pnpm test
|