In a monorepo, CI runs only for changed paths, but required checks then never appear for some PRs.
AdvancedScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → Path-filtered workflows do not run when files outside the filter change, so required checks stay pending.
What I'd do →
- Remove
paths:filters from the workflow trigger and detect changes inside the job (for exampledorny/paths-filter). - Skip heavy jobs with
if:conditions; skipped jobs count as passed. - Add a single always-running gate job and make only that required.
- Use a merge queue with the same checks.
Why → A job-level skip reports a status, but a workflow that never triggered reports none.
Interview tip → This exact problem appears in nearly every monorepo migration.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateDesigners commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?IntermediateYour GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?AdvancedA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.Intermediate