cicirello/jacoco-badge-generator

JaCoCo coverage badges and pull request coverage checks in GitHub Actions

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 26, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: cicirello/jacoco-badge-generator@72266185b7ee48a6fd74eaf0238395cc8b14fef8 # v2.12.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
jacoco-csv-fileFull path, relative to the root of the repository, to the jacoco csv file(s), including filename(s)notarget/site/jacoco/jacoco.csv
badges-directoryThe directory for storing badges, relative to the root of the repository.no.github/badges
coverage-badge-filenameThe filename of the coverage badge.nojacoco.svg
branches-badge-filenameThe filename of the branches coverage badge.nobranches.svg
generate-coverage-badgeControls whether or not to generate the coverage badge.notrue
generate-branches-badgeControls whether or not to generate the branches coverage badge.nofalse
coverage-labelText for the left-side of the coverage badge.nocoverage
branches-labelText for the left-side of the branches coverage badge.nobranches
on-missing-reportControls what happens if one or more jacoco.csv files do not exist.nofail
fail-if-coverage-less-thanEnables failing workflow run when coverage below specified threshold.no0
fail-if-branches-less-thanEnables failing workflow run when branches coverage below specified threshold.no0
fail-on-coverage-decreaseEnables failing workflow if coverage is less than it was on previous run.nofalse
fail-on-branches-decreaseEnables failing workflow if branches coverage is less than it was on previous run.nofalse
coverage-decrease-limitOverrides fail-on-coverage-decrease when coverage is at least this limitno100
branches-decrease-limitOverrides fail-on-branches-decrease when branches coverage is at least this limitno100
intervalsList of coverage percentages as cutoffs for each color.no100 90 80 70 60 0
colorsList of colors to use ordered by coverage interval, best coverage to worst.no#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44
generate-coverage-endpointControls whether or not to generate the coverage JSON endpoint.nofalse
generate-branches-endpointControls whether or not to generate the branches coverage JSON endpoint.nofalse
coverage-endpoint-filenameThe filename of the coverage JSON endpoint.nojacoco.json
branches-endpoint-filenameThe filename of the branches coverage JSON endpoint.nobranches.json
generate-summaryControls whether or not to generate a JSON file containing the coverage percentages as floating-point values.nofalse
summary-filenameThe filename of the summary file.nocoverage-summary.json
generate-workflow-summaryControls whether or not to append summary to the GitHub workflow summary page.notrue
workflow-summary-headingThe heading for the GitHub workflow job summarynoJaCoCo Test Coverage Summary
namedescription
coverageThe jacoco coverage percentage as computed from the data in the jacoco.csv file.
branchesThe jacoco branch coverage percentage as computed from the data in the jacoco.csv file.