File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed
Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 3333 with :
3434 check-latest : true
3535 go-version : 1.24.6
36+ code_coverage :
37+ name : Code coverage report
38+ if : github.event_name == 'pull_request'
39+ needs :
40+ - test
41+ runs-on : ubuntu-latest
42+ steps :
43+ - name : Check out code
44+ uses : actions/checkout@v5
45+ - name : Post coverage report
46+ uses : fgrosse/go-coverage-report@v1.2.0
47+ with :
48+ coverage-artifact-name : code-coverage
49+ coverage-file-name : cover.out
50+ permissions :
51+ actions : read
52+ contents : read
53+ pull-requests : write
3654 test :
3755 name : Test
3856 needs :
4866 go-version : 1.24.6
4967 - name : Run tests and generate coverage report
5068 run : make build/cover.out
51- - name : Upload coverage report to Coveralls
52- env :
53- COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54- GIT_BRANCH : ${{ github.head_ref }}
55- run : |
56- go install github.com/mattn/goveralls@latest
57- goveralls -service=github -coverprofile=build/cover.out
69+ - name : Archive code coverage results
70+ uses : actions/upload-artifact@v4
71+ with :
72+ name : code-coverage
73+ path : build/cover.out
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ golangciLint:
2727githubWorkflow :
2828 ci :
2929 enabled : true
30- coveralls : true
3130 license :
3231 ignorePatterns :
3332 # vendored copies from upstream
You can’t perform that action at this time.
0 commit comments