Interview Prep/CI/CD/GitHub Actions and GitLab CI in Production

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.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production