mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 10:47:57 +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
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.18'
|
go-version: '1.18'
|
||||||
|
|
||||||
- name: Test
|
- 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
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
file: ./cover.out
|
file: cover.out
|
||||||
flags: unittests
|
flags: unittests
|
||||||
verbose: true
|
verbose: true
|
||||||
|
Loading…
Reference in New Issue
Block a user