actions-marketplace-validations/Go Coverage

Generates Go coverage reports without third party services

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokengithub token${{ github.token }}
report-urlURL of final uploaded report. e.g. https://reports.example.com/{{ $github.sha }}/cover.htmlno
working-directoryWorking directory. Defaults to project rootno""
report-filenameFile or pathname for the resulting html coverage reportnogo-coverage.html
cover-modeParameter to pass to go tests -covermode argument. Either count, set or atomiccount
cover-pkgParameter to pass to go tests -coverpkg argument. Leave empty to omit flag""
test-argsAdditional build arguments to pass to go testno[]
test-pkgsPackage names to test, passed to go test - Multiple arguments should be separated by newlinesno./...
coverage-thresholdFail the build if the coverage drops below supplied percentageno0
fail-coverageFail the build if coverage drops below coverage-threshold. One of "always", "never" or "only_pull_requests"noonly_pull_requests
add-commentAdds a comment to the PR with coverage information if true. If false will only add an action summary reportnotrue
ignore-patternOne or more regular expressions matching filenames to exclude from coverage statistics (e.g. for generated Go files)no""
notes-refThe refname to use for the git notes. Defaults to gocoveragenogocoverage
namedescription
report-pathnameThe full pathname of the generated coverage report
gocov-pathnameThe full pathname of the raw .cov coverage data
gocov-agg-pathnameThe full pathname of the aggregated .cov coverage data
coverage-pctThe coverage figure for the whole project. e.g "83.478"
coverage-pct-0dpThe coverage figure for the whole project rounded to the nearest integer. e.g "83"
coverage-pct-1dpThe coverage figure for the whole project rounded to 1 decimal place. e.g "83.5"
meets-thresholdSet to true if the current coverage is greater than coverage-threshold
coverage-last-pctThe prior coverage percentage
coverage-last-pct-0dpThe prior coverage percentage rounded to the nearest integer
coverage-last-pct-1dpThe prior coverage percentage rounded to 1 decimal place
coverage-last-shaCommit sha prior coverage was recorded at
coverage-deltaAmount coverage has changed
package-countNumber of Go packages scanned
uncovered-packagesNumber of Go packages with no test coverage