Interview Prep/GitHub Actions/Speed, Caching & Cost

Small lint, format and typecheck jobs each take 40 seconds of setup for 10 seconds of work. Should you merge them?

BeginnerScenarioSpeed, Caching & Cost
Answer

Situation read → Per-job overhead dominates.

What I'd do →

  1. Merge into one static-checks job with sequential steps, each named clearly.
  2. Use if: ${{ !cancelled() }} on later steps so all checks report even if one fails.
  3. Keep long, independent suites (unit tests, build) as separate parallel jobs.

Why → Each job pays VM allocation, checkout, setup and cache restore.

Interview tip → "Fat jobs for tiny tasks, parallel jobs for long ones."

All GitHub Actions questions Roadmap: GitHub Actions

More on Speed, Caching & Cost