Skip to content

Commit

Permalink
golang: capture coverage as HTML artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwagner committed Dec 18, 2023
1 parent 6986c6f commit df54b3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci-golang.yaml
Expand Up @@ -23,7 +23,13 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: ${{inputs.go-version-file}}
- run: go test -v -race ./...
- run: go test -v -coverprofile=coverage.out -race ./...
- run: go tool cover -html=coverage.out -o=coverage.html
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: code-coverage-report
path: coverage.html
retention-days: 7

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit df54b3b

Please sign in to comment.