seriousben/Go Patch Coverage

Display golang patch test coverage on your pull requests.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versionThe version of go-patch-cover to use. yesv0.2.0
coverage_filenamego coverage file for the code after change. Can be generated with any cover mode. Example generation: go test -coverprofile=coverage.out -covermode=count ./... yescoverage.out
diff_filenameUnified diff file of the patch to compute coverage for. Example generation: git diff -U0 --no-color origin/main > patch.diff nopatch.diff
previous_coverage_filenamego coverage file for the code before changes. When not provided, previous coverage information will not be displayed. noprev_coverage.out
diff_enabledControls whether go-patch-cover action should create the diff file or not. yestrue
prev_coverage_modeThe GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}. Modes: - git-notes: Use git notes: `refs/notes/coverage` to persist the coverage file on pushes. - file: Expect the file pointed to by the previous_coverage_filename input to already exist. nogit-notes
github_tokenThe GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}. no${{ github.token }}

no outputs