Skip to content

ci: add always-green wrapper job for branch protection compatibility#57

Merged
croc100 merged 1 commit into
mainfrom
ci/always-green-wrapper
Jun 8, 2026
Merged

ci: add always-green wrapper job for branch protection compatibility#57
croc100 merged 1 commit into
mainfrom
ci/always-green-wrapper

Conversation

@croc100

@croc100 croc100 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Problem

Docs-only PRs (e.g. #53) have all jobs in 'skipping' state because
paths-filter correctly determines no source changed. However GitHub
branch protection treats 'skipped' as not equal to 'passed', so the PR
cannot be merged.

Fix

Add a ci wrapper job that:

  • Depends on all conditional jobs via needs
  • Runs with if: always() so it is never skipped
  • Passes when all deps are either success or skipped
  • Fails when any dep is failure or cancelled

Also update the branch protection ruleset (via API) to require only ci
instead of the three test (3.10/11/12) checks.

Test plan

Docs-only PRs skip all conditional jobs (lint, test, etc.) via
paths-filter, which leaves required status checks in 'skipping' state.
GitHub treats skipped != passed, so merge is blocked.

Fix: add a ci wrapper job that depends on all conditional jobs and runs
with if: always(). It passes when deps are either passed or skipped, and
fails when any dep fails or is cancelled.

Branch protection ruleset updated to require only 'ci' instead of
'test (3.10/11/12)'.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@croc100 croc100 merged commit e2595c6 into main Jun 8, 2026
14 checks passed
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.

2 participants