Interview Prep/GitHub Actions/Runners, ARC, Monorepos & Releases

A monorepo has 30 services; every PR builds all of them. Redesign.

AdvancedScenarioRunners, ARC, Monorepos & Releases
Answer

Situation read → Need change detection with dependency awareness.

What I'd do →

  1. changes job computes affected services: path filters per service including shared libs, or nx show projects --affected --base=origin/main --json.
  2. Dynamic matrix build with fromJSON, guarded against empty lists.
  3. Per-service Docker cache scope.
  4. Fan-in ci-ok as the only required check.
  5. Nightly full build to catch anything the graph missed.

Why → Typical PRs touch one or two services, cutting time and cost dramatically.

Interview tip → Mention the nightly full build as a safety net.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, ARC, Monorepos & Releases