File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed
Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -88,28 +88,11 @@ jobs:
8888 working-directory : " src/"
8989 run : go test -race -cover -coverprofile=coverage.txt ./...
9090
91- - name : Archive code coverage results
92- uses : actions/upload-artifact@v4
93- with :
94- name : code-coverage
95- path : " **/coverage.txt"
96-
97- code_coverage :
98- name : " Code coverage report"
99- if : github.event_name == 'pull_request'
100- runs-on : ubuntu-latest
101- needs : test
102- permissions :
103- contents : read
104- actions : read # to download code coverage results from "test" job
105- pull-requests : write # write permission needed to comment on PR
106-
107- steps :
108- - uses : fgrosse/go-coverage-report@v1.2.0
91+ - name : Upload coverage to Codecov
92+ uses : codecov/codecov-action@v5
10993 with :
110- root-package : " github.com/${{ github.repository }}/src"
111- coverage-artifact-name : " code-coverage"
112- coverage-file-name : " src/coverage.txt"
94+ token : ${{ secrets.CODECOV_TOKEN }}
95+ fail_ci_if_error : false
11396
11497 goreleaser :
11598 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments