Skip to content

ci: add the ci gate job that master-rule requires - #53

Merged
rennf93 merged 1 commit into
mainfrom
ci/gate-job
Nov 3, 2026
Merged

rennf93 merged 1 commit into
mainfrom
ci/gate-job

Conversation

@rennf93

@rennf93 rennf93 commented Nov 3, 2026

Copy link
Copy Markdown
Member

master-rule requires a status check called ci, but no job in this repo was named ci, so that check never reported and every merge needed the admin bypass to get past it.

This adds a ci job at the end of .github/workflows/ci.yml. It needs every other job in the file, runs with if: always(), and fails when any of them failed or was cancelled. A skipped job counts as passed.

It also switches the PHP lint step from for f in $(find ...) to a null-delimited while read loop, because actionlint's shellcheck pass flagged the old one (SC2044). Same behavior: I ran the new loop on a tree with a file that doesn't parse (exit 1) and on a clean one, with a space in a file name (exit 0, LINT_OK).

actionlint is clean on the file. I also checked the gate's pass rule on its own: success success, success skipped and skipped skipped exit 0, success failure and cancelled success exit 1. The real proof is this PR's own checks, where ci has to show up and pass.

master-rule has required a status context named ci, but no job here was called ci, so the check never reported and every merge leaned on the admin bypass. The new job needs every other job in ci.yml, always runs, and fails if any of them failed or was cancelled. A skipped job counts as passed.

The PHP lint step now reads find's output with a null-delimited while loop, so actionlint's shellcheck pass (SC2044) is clean on this file too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E28c6iftj4hRmx55Uaaoxc
@rennf93 rennf93 added the no-issue Chore or dependency PR that does not need an issue label Nov 3, 2026
@github-actions github-actions Bot added the ci GitHub Actions workflows label Nov 3, 2026
@rennf93
rennf93 merged commit 9598da5 into main Nov 3, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub Actions workflows no-issue Chore or dependency PR that does not need an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant