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

How do you reduce GitHub Actions minutes cost on private repos?

IntermediateProductionGitHub Actions and GitLab CI in Production
Answer

Cancel redundant runs with concurrency, set timeout-minutes, use path filters, cache dependencies, skip CI for docs-only changes, avoid large matrices on every PR (run the full matrix on main/nightly), and prefer Linux runners (Windows costs 2x and macOS 10x per minute). Consider larger runners if they shorten duration enough to cost less in total, or self-hosted runners on spot instances through ARC for heavy workloads. Check the usage report in billing and find the top ten workflows by minutes.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production