Update go.yml

This commit is contained in:
yanghy 2023-10-05 18:12:14 +08:00 committed by GitHub
parent ab993b2d1f
commit 5fc6bc96e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,17 +17,19 @@ jobs:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v3
with:
go-version: '1.18'
- name: Test
run: go test ./... -v -coverprofile=cover.out -covermode=atomic
run:
go test ./... -v -coverprofile=cover.out -covermode=atomic
go tool cover -func=cover.out
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
file: cover.out
flags: unittests
verbose: true