stevenacoffman/Go Beautiful HTML Coverage
Track Go code coverage in pull requests with a beautiful HTML preview.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name with owner that hosts the coverage branch, e.g. yourorg/yourrepo. Defaults to the repository running the workflow. Override to centralise coverage files from multiple repos in a single dedicated repo. | no | ${{ github.repository }} |
| branch | Branch to checkout or create for storing coverage files. Must match the branch configured in GitHub Pages (Settings → Pages → Deploy from a branch). | no | cover |
| token | GitHub token used for pushing to the coverage branch and posting PR comments. Requires contents:write on the repository that hosts the coverage branch and pull-requests:write on the repository being tested. | no | ${{ github.token }} |
| path | Relative path to the Go module within the repository. The cover.out coverage profile must exist at this path after the test step runs. Useful for monorepos with multiple Go modules. | no | ./ |
| threshold | Minimum acceptable coverage percentage (e.g. 80). The action fails when total coverage falls below this value. Set to 0 (default) to skip the threshold check. | no | 0 |
Outputs
no outputs