Name the top ways to reduce Actions minutes and wall-clock time.
IntermediateConceptDebugging, Cost, Monorepos & Releases
Answer
concurrencywithcancel-in-progresson PRs.- Path filters and skip docs-only changes.
- Dependency and Docker layer caching.
- Short
timeout-minutesto kill hangs. - Smaller matrices on PRs, full matrix on
mainor nightly. - Linux instead of Windows or macOS where possible; arm64 runners for arm builds instead of QEMU.
- Fewer, fatter jobs for tiny tasks (each job has fixed overhead); parallel jobs for long independent ones.
- Test sharding and running only affected tests in monorepos.
- Short artifact retention.
Measure first with the run timing API and the Actions usage metrics in org insights.
More on Debugging, Cost, Monorepos & Releases
How do you enable debug logging, and what does each flag show?BeginnerWhat tools help you inspect a run from the terminal?BeginnerHow is GitHub Actions billed for private repos, and what are the multipliers?IntermediateHow do you build only the services that changed in a monorepo?AdvancedWhy are workflow-level `paths` filters problematic with required checks, and what is the fix?IntermediateHow do you automate releases with release-please?Intermediate