未验证 提交 5fc6bc96 编写于 作者: Y yanghy 提交者: GitHub

Update go.yml

上级 ab993b2d
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册