Commit a9b1306 1 parent 962a3fe commit a9b1306 Copy full SHA for a9b1306
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,14 @@ jobs:
49
49
- name : Build
50
50
run : go build -v ./...
51
51
52
- - name : Test
53
- run : go test -v -coverprofile=coverage.txt -covermode=atomic ./...
54
-
55
52
- name : govulncheck
56
53
uses : golang/govulncheck-action@v1
57
54
with :
58
55
go-version-input : 1.22
59
56
go-package : ./...
60
57
61
- - shell : bash
58
+ - name : Test and Codecov
59
+ shell : bash
62
60
env :
63
61
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
64
62
run : |
67
65
# You will need to setup the environment variables below in github
68
66
# and the project in codecov.io
69
67
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
70
- curl -Os https://uploader .codecov.io/latest/linux/codecov
68
+ curl -Os https://cli .codecov.io/latest/linux/codecov
71
69
chmod +x codecov
72
70
CODECOV_TOKEN=$CODECOV_TOKEN ./codecov
71
+ ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml
You can’t perform that action at this time.
0 commit comments