getsentry/Codecov Action

Test results and coverage reporting for GitHub Actions with multi-format support

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token for API access and artifactsyes
filesComma-separated explicit list of coverage files to processno
directoryFolder to search for coverage files. Defaults to current working directoryno.
excludeComma-separated list of folders/patterns to exclude from searchno
coverage-formatCoverage format hint (auto, clover, cobertura, jacoco, lcov, istanbul, go). Auto-detects if not specifiednoauto
disable-searchDisable automatic search for coverage files. Use with "files" inputnofalse
fail-ci-if-errorExit with non-zero code if coverage processing failsnofalse
handle-no-reports-foundDo not fail if no coverage reports are foundnofalse
verboseEnable verbose logging for debuggingnofalse
flagsComma-separated list of flags to tag this coverage upload (e.g., unittests, frontend)no
nameCustom name for this coverage upload. Visible in reportsno
base-branchBase branch to compare results against. Auto-detects the repo's default branch if not specifiedno
junit-xml-patternGlob pattern for finding JUnit XML filesno./**/*.junit.xml
enable-testsEnable test results reportingnotrue
enable-coverageEnable coverage reportingnotrue
post-pr-commentPost results as a PR comment (in addition to Job Summary)nofalse
comment-keyUnique key to namespace this step's PR comment. Set a different key per step to post separate comments.no""
fail-on-errorFail the CI job if coverage thresholds are not metnofalse
target-projectTarget project coverage % (or 'auto' to use base branch coverage)no
threshold-projectAllowed project coverage drop % (only used when target is 'auto')no
target-patchTarget patch coverage % for changed lines (defaults to 80 if not set in input or config file)no
informational-projectWhen true, project status check always reports success (advisory mode). Overrides config file.no
informational-patchWhen true, patch status check always reports success (advisory mode). Overrides config file.no
coverage-xml-pattern[Deprecated] Glob pattern for finding coverage XML files. Use files/directory instead.no
namedescription
total-testsTotal number of tests run
passed-testsNumber of passed tests
failed-testsNumber of failed tests
test-pass-ratePercentage of tests that passed
tests-addedNumber of tests added compared to base branch
tests-removedNumber of tests removed compared to base branch
tests-fixedNumber of tests that changed from failing to passing
tests-brokenNumber of tests that changed from passing to failing
line-coverageLine coverage percentage
branch-coverageBranch coverage percentage
coverage-changeChange in line coverage compared to base branch
branch-coverage-changeChange in branch coverage compared to base branch
coverage-improvedWhether coverage improved compared to base branch (true/false)
coverage-formatThe detected or specified coverage format used
coverage-nameThe custom name provided for the coverage upload
coverage-flagsThe flags provided for the coverage upload