File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ codecov :
2+ max_report_age : 24h
3+
4+ coverage :
5+ round : nearest
6+ range : 40..100
Original file line number Diff line number Diff line change @@ -18,14 +18,23 @@ jobs:
1818 uses : actions/setup-go@v5
1919 with :
2020 go-version-file : go.mod
21+ - name : Install gotestsum
22+ run : go install gotest.tools/gotestsum@latest
2123 - name : Test
22- run : go test $(go list ./... | grep -v '/gen$') -coverprofile coverage.out
24+ run : gotestsum --junitfile report.xml -- -coverprofile=coverage.out $(go list ./... | grep -v '/gen$')
2325 - name : Report coverage
2426 uses : codecov/codecov-action@v5
2527 with :
2628 token : ${{ secrets.CODECOV_TOKEN }}
29+ files : ./coverage.out
2730 flags : unit
2831 name : ${{ join(matrix.*, ' ') }}
32+ - name : Upload test results to Codecov
33+ if : ${{ !cancelled() }}
34+ uses : codecov/test-results-action@v1
35+ with :
36+ files : report.xml
37+ token : ${{ secrets.CODECOV_TOKEN }}
2938
3039 build :
3140 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments