File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,15 @@ jobs:
2828 go-version-file : ' go.mod'
2929 - name : Run tests with coverage
3030 run : |
31- go test -coverprofile=coverage.out -covermode=atomic $(go list ./... | grep -v '/examples/')
32- - name : Generate coverage report
33- uses : fgrosse/go-coverage-report@v1.1.0
31+ go test -coverprofile=coverage.txt -covermode=atomic $(go list ./... | grep -v '/examples/')
32+ - name : Upload coverage artifact
33+ uses : actions/upload-artifact@v4
3434 with :
35- coverage-file : coverage.out
36- coverage-threshold : 50
35+ name : code-coverage
36+ path : coverage.txt
37+ - name : Generate coverage report
38+ uses : fgrosse/go-coverage-report@v1.2.0
39+ if : github.event_name == 'pull_request'
3740
3841 verify-codegen :
3942 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 44.opencode
55.claude
66coverage.out
7+ coverage.txt
You can’t perform that action at this time.
0 commit comments