prettier/prettier - GitHub Actions cost & CI smells
Workflows
17
Per-run $ (modeled)
$1.02
Monthly $ @ 30/day
$921.6
ci-doctor findings
32
Numbers are modeled: 8 minutes per priced job, 30 runs per day per workflow, 30-day month, GitHub-hosted runner rate sheet. prettier/prettier's real run frequency is unknown to me. Smells, however, are real - they come from parsing the actual YAML.
Findings by rule
| Rule | Hits |
|---|---|
missing-timeout | 16 |
deprecated-action | 6 |
matrix-overcommit | 3 |
missing-cache | 3 |
always-run-on-pr | 2 |
artifact-no-retention | 1 |
stale-cache-key | 1 |
Per-workflow breakdown
| Workflow | Jobs | Per-run $ | Findings |
|---|---|---|---|
prod-test.yml |
6 | $0.19 | 14 |
_build.yml |
1 | $0.06 | 2 |
bundler-friendly.yml |
2 | $0.06 | 2 |
check-sizes.yml |
1 | $0.06 | 1 |
cleanup-cspell.yml |
1 | $0.06 | 1 |
codeql.yml |
1 | $0.06 | 3 |
eslint-rules.yml |
1 | $0.06 | 1 |
lint.yml |
1 | $0.06 | 1 |
lock.yml |
1 | $0.06 | 1 |
mark-issue-duplicate.yml |
1 | $0.06 | 1 |
no-response.yml |
1 | $0.06 | 1 |
prevent-file-change.yml |
1 | $0.06 | 1 |
release-script-test.yml |
1 | $0.06 | 1 |
support.yml |
1 | $0.06 | 1 |
autofix.yml |
1 | $0.00 | 0 |
dev-package-test.yml |
1 | $0.00 | 0 |
dev-test.yml |
1 | $0.00 | 1 |
Examples of what ci-doctor reports
prod-test.yml ·
WARN
missing-cacheactions/setup-node has no cache option. Add 'with: cache: <ecosystem>' to skip dep re-downloads. Saves 30-90 seconds per run.
prod-test.yml ·
WARN
missing-cacheactions/setup-node has no cache option. Add 'with: cache: <ecosystem>' to skip dep re-downloads. Saves 30-90 seconds per run.
prod-test.yml ·
WARN
missing-cacheactions/setup-node has no cache option. Add 'with: cache: <ecosystem>' to skip dep re-downloads. Saves 30-90 seconds per run.
_build.yml ·
WARN
missing-timeoutJob 'build' has no timeout-minutes. Default is 360 (6h). A hung job can drain your CI budget.
_build.yml ·
INFO
artifact-no-retentionupload-artifact has no retention-days. CI artifacts pile up at the repo default (usually 90d). Set 7-14d unless you need long-term retention.
bundler-friendly.yml ·
WARN
missing-timeoutJob 'webpack' has no timeout-minutes. Default is 360 (6h). A hung job can drain your CI budget.
What you can do
If you maintain prettier/prettier or a similar workflow shape, three patterns probably move the most dollars per minute of work:
- Add a
concurrency:block withcancel-in-progress: trueon every PR-triggered workflow. - Set
timeout-minuteson every job (default is 6 hours). - Make sure every
setup-*action setscache: <ecosystem>.
Free CLIs that automate the audit and the pin step:
npx ci-doctor # 14-rule audit
npx ci-doctor --fix # auto-apply the four safe fixes
npx pin-actions # pin every uses: ref to a SHA
npx gha-budget # estimate per-run $ + monthly
Want the full pattern set?
The Cut Your CI Bill cookbook is 30 paste-ready GitHub Actions patterns plus 5 hardened workflow templates. $19, one-time, MIT-licensed templates.
Get the cookbookAbout this dataset
Methodology and code: /blog/oss-ci-cost-benchmarks.html. Compare with all 20 repos: /benchmarks.html. This page is regenerated when the benchmark dataset is refreshed.