Automated tests feel effortless until GitHub sends a usage or billing notification. Doesn't GitHub Actions run for free? The answer depends on the repository, runner type, and account plan.
Where the distinction lies
Standard GitHub-hosted runners are free for public repositories. Jobs in private repositories use the account's included compute allowance, with further usage potentially billed depending on account and budget settings. Larger runners follow different pricing rules. Minutes used by a job and the number of times a workflow starts are not the same metric.
Linux, Windows, and macOS runners can carry different rates. Artifact and cache storage also have separate limits and accounting. Prices and quotas change; always check GitHub's current billing reference instead of relying on an old article's numbers.
A short audit checklist
- Open Repository → Actions to find frequently triggered workflows.
- Inspect the runner, duration, and Usage information for representative jobs.
- Open account-level Billing and licensing / Usage to see what the account has consumed.
- Configure billing budgets and alerts; enable a stop-on-limit option where supported.
- Review whether the same checks run redundantly on push, pull request, and merge.
What I learned while adding automation
ONSEMO uses GitHub across several repositories, with pull-request checks and Cloudflare-connected deployments. Automation simplifies the work, but even a small change can trigger several workflows. It is worth checking exactly which events start each build.
If the distinction between a branch, pull request, merge, and deployment is unfamiliar, the following guide explains the workflow first.
Related readingGitHub Main and Branches — What Is the Difference?Learn how Git and GitHub differ, and how main, branches, commits, pushes, Pull Requests, merges, and production deployments fit into a website workflow.
I also added an automated cleanup process for Cloudflare previews after merging. That is useful, but another reminder to review a workflow's triggers and avoid unnecessary repeated jobs.
Related readingCleaning Up Cloudflare Previews Automatically with GitHub ActionsHow to connect GitHub Actions to Cloudflare Workers Builds and Preview APIs, verify the successful production deployment, and delete only the intended Preview.
The goal is not to disable useful tests to save minutes. It is to understand what actually runs and remove unnecessary duplication.