How do you handle required checks when workflows use path filters or matrices?
AdvancedProductionGitHub Actions and GitLab CI in Production
Answer
A required check from a workflow that did not run (because of paths:) stays "Expected" and blocks merging. Solutions: avoid path filters on required workflows and use a change-detection job inside; or add a single always-running gate job (ci-ok) that needs all other jobs with if: always() and fails when any dependency failed or was cancelled, and make only that job required. This also decouples branch protection from matrix job names that change when you add a version.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you reduce GitHub Actions minutes cost on private repos?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you keep GitHub Actions workflow files themselves safe from unauthorised changes?Intermediate