Load this reference only when the task involves GitHub Actions or CI workflow efficiency.
If the repo is onboarding GitHub Actions for the first time, define a minimal baseline workflow first, then optimize using the rest of this guide.
Audit Order
Inspect in this order:
If .github/workflows/ is missing or empty, gather baseline requirements first: triggering events, required checks, runtime versions, and repository-specific validation policy.
.github/workflows/*.yml
Docs describing CI expectations
Existing reports or run history if the user wants measured impact
For new setups, start with a small workflow that proves core checks, then add matrix breadth or additional jobs only when needed.
Start with common, low-risk waste:
Missing dependency caches
Missing concurrency cancellation
Over-broad workflow triggers
Duplicate workflow coverage across files or jobs
Expensive jobs that run on every change regardless of scope