Skip to content

How CI works

Every check a pull request runs is listed in .github/gates.json, with what it checks, the command that reproduces it here, and the command that fixes it where a fix is mechanical. Contributing says which to run before a push.

The workflows

WorkflowRunsOn
ci.ymlEvery gate on PHP and the scripts, hygiene, the site, Outbreak’s core, Tally’s counts and the package’s own mutation gateevery pull request and push to main, and nightly
pr.ymlThe pull request’s commits, title and body, in one job prevery pull request, and each edit of its title or body
hygiene.ymlactionlint, zizmor, typos, lychee, markdownlint, the line cap, gitleaks and osv-scanner, in one job toolscalled by ci.yml
site.ymlThe docs site’s build and its link checkscalled by ci.yml and pages.yml
pages.ymlThe versioned docs site, deployed to GitHub Pagesa push to main that changes the docs, and on demand
mutation-gate.ymlThe reusable workflow projects call, which ci.yml calls for the package’s own gatecalled
end-to-end.ymlThe gate installed into another project: warm workers, and the hook managerscalled by ci.yml
outbreak.ymlOutbreak’s core: the Rust gates, the boundary contract suites, and the binaries and outbreak.so for each platformcalled by ci.yml
runner-contract.ymlThe runner and static checker contract suites against each runner’s fixture at its highest and lowest releases, one job per entry of legs.json’s jobs; ci.yml’s runner contracts reads their logscalled by ci.yml
tally.ymlThe hot paths’ counts under Tally (ADR-0154)called by ci.yml
local-mode.ymlThe local mode and the local loop on a pinned projectevery pull request and push to main
claim-race.ymlThe race of shard claims (ADR-0134)nightly, and on demand
canary.ymlThe runner and static checker contracts against the newest release of each tooldaily
codeql.yml, scorecard.ymlCodeQL over the workflows, and OpenSSF Scorecardpushes to main, pull requests for CodeQL, and a schedule
bench.ymlThe benchmarkon demand and monthly
release.ymlDrafting and publishing a releaseon demand, and a pushed release tag
bot-commands.yml/update, /rebase, /retest and /docsa comment

What a pull request runs

scope, shown as what changed, reads the paths a pull request changed and says which PHP gates it needs (.github/scripts/scope.py): a change to documentation alone runs none of them, and a runner’s contract legs run only where its adapter, its fixture or what every runner shares changed. Every job still reports, skipped where scope leaves it out, so each one can be a required check. A push to main and the nightly run take every job.

The package’s own gate

The mutation job runs the package’s own reusable workflow over itself, with the coverage map the coverage job joins from the tests’ and the runner contract’s reports (ADR-0152), holding each tree to the floor mutation-gate.baseline.json records for it (ADR-0011). Its config is mutation-gate.json, and its proofs live in the GitHub Actions cache. The default branch publishes the badge and the trend to the mutation-gate branch.

Evidence and the bot

Every job leaves its evidence, the findings of each tool in a structured form, as an artifact the bot reads. The bot explains each failure from tables on main, fixes what is mechanical, and runs no pull request code where it can write (ADR-0019).