mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 02:37:46 +08:00
Update go.yml
This commit is contained in:
parent
ab993b2d1f
commit
5fc6bc96e7
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user