Skip to content

Commit a9b1306

Browse files
committed
update CI script
1 parent 962a3fe commit a9b1306

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/go.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,14 @@ jobs:
4949
- name: Build
5050
run: go build -v ./...
5151

52-
- name: Test
53-
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
54-
5552
- name: govulncheck
5653
uses: golang/govulncheck-action@v1
5754
with:
5855
go-version-input: 1.22
5956
go-package: ./...
6057

61-
- shell: bash
58+
- name: Test and Codecov
59+
shell: bash
6260
env:
6361
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6462
run: |
@@ -67,6 +65,7 @@ jobs:
6765
# You will need to setup the environment variables below in github
6866
# and the project in codecov.io
6967
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
7169
chmod +x codecov
7270
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

0 commit comments

Comments
 (0)