File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 1717 go-version : 1.24
1818 - uses : actions/setup-go@v3
1919 - name : go test
20- run : go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
21- - name : check test coverage
22- uses : vladopajic/go-test-coverage@v2
20+ run : go test ./... -coverprofile=./coverage.txt
21+ - name : Upload coverage reports to Codecov
22+ uses : codecov/codecov-action@v5
2323 with :
24- profile : cover.out
25- threshold-total : 75
26-
27- # # when token is not specified (value '') this feature is turned off
28- # # in this example badge is created and committed only for main branch
29- git-token : ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
30- # # name of branch where badges are stored
31- # # ideally this should be orphan branch (see below how to create this branch)
32- git-branch : badges
24+ token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments