Skip to content

ci: skip the Go matrix on docs-only pull requests#100

Merged
joshua-temple merged 1 commit into
mainfrom
ci/skip-go-jobs-on-docs-only
Jun 1, 2026
Merged

ci: skip the Go matrix on docs-only pull requests#100
joshua-temple merged 1 commit into
mainfrom
ci/skip-go-jobs-on-docs-only

Conversation

@joshua-temple
Copy link
Copy Markdown
Collaborator

Docs-only pull requests currently run the full Go matrix — lint, vuln, coverage, and the six-leg tests matrix — even though no Go changed. This skips that work without reintroducing the "skipped required check blocks the merge" trap.

A new changes job detects whether anything other than docs (*.md, docs/**, LICENSE, NOTICE) changed, defaulting to "code changed" if the diff can't be determined. lint, tests, vuln, coverage, and bench now run only when code changed. A new always-running gate job aggregates the required jobs — it fails if any failed or was cancelled and treats a skipped job as a pass — so it stays green on docs-only PRs (bench is advisory and excluded from the gate).

Follow-up after merge (repo setting, not in this PR): branch protection on main is switched to require only the single gate context instead of the nine individual checks. This PR itself touches .github/, so the full matrix runs and passes here under the current rules.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple joshua-temple merged commit 624585f into main Jun 1, 2026
12 checks passed
@joshua-temple joshua-temple deleted the ci/skip-go-jobs-on-docs-only branch June 1, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant