ba58ajbse/Go Test PR Reporter
Run Go tests and report results as PR comments and Job Summary
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| test-path | Go package pattern to test | no | ./... |
| working-directory | Directory to run go test in (where go.mod is located) | no | . |
| test-flags | Additional flags to pass to go test (e.g. -race -count=1 -timeout 30s) | no | "" |
| token | GitHub token for posting PR comments | no | ${{ github.token }} |
| post-comment | Whether to post results as a PR comment (true/false) | no | true |
| comment-tag | Tag to identify the comment for updates (must be unique per workflow to avoid overwriting) | no | go-test-results-${{ github.workflow }} |
Outputs
| name | description |
|---|---|
| total | Total number of tests |
| passed | Number of passed tests |
| failed | Number of failed tests |
| skipped | Number of skipped tests |
| elapsed | Total elapsed time in seconds |
| summary | Markdown summary of test results |