Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,34 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f
with:
determinate: false
# A PR from a quest's branch must delete or rewrite its quest. A quest
# built from the base checks that before any of the head's code runs on
# this runner, so the head cannot weaken the check it is held to.
- name: Check out the base
if: github.event_name == 'pull_request'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false
- name: Build quest from the base
if: github.event_name == 'pull_request'
run: nix build --out-link "$RUNNER_TEMP/quest-base" .#quest
# The full history holds the merge base with the base branch.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
# The checkout is detached, so name the head branch.
- name: Check that the PR leaves its quest accurate
if: github.event_name == 'pull_request'
working-directory: ${{ runner.temp }}
env:
BASE_REF: ${{ github.base_ref }}
HEAD_REF: ${{ github.head_ref }}
run: ./quest-base/bin/quest --root "$GITHUB_WORKSPACE" check --base "origin/$BASE_REF" --branch "$HEAD_REF"
- name: Install dependencies
run: nix develop --command just install
# `quest worktree run` owns processes through a systemd user scope, which the tests exercise.
Expand Down
1 change: 0 additions & 1 deletion quest/m0/helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ commands from Sep-Oct. Session counts in each child come from that window.
- [Complete loop](/quest/m0/helpers/complete-loop.md) - `/quest-complete` re-scans PRs, keeps picks and holds, and counts rounds per PR
- [Headless agents](/quest/m0/helpers/headless-agents.md) - `/quest-spawn api` launches, resumes, and stops billed agents through one command auto mode allows
- [Wait gaps](/quest/m0/helpers/wait-gaps.md) - `quest wait` reports every event after its starting point exactly once
- [Guard in CI](/quest/m0/helpers/ci-guard.md) - pull request CI runs the landed-quest guard

## Related

Expand Down
19 changes: 0 additions & 19 deletions quest/m0/helpers/ci-guard.md

This file was deleted.

Loading