未验证 提交 be06e8d7 编写于 作者: Z zhang-wei 提交者: GitHub

code coverage (#54)

上级 596611e3
......@@ -24,26 +24,20 @@ on:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: make deps
- name: Lint
run: make lint
- name: Test
run: make test
run: make test && bash <(curl -s https://codecov.io/bash)
......@@ -14,3 +14,6 @@ bin/
# IDE
.idea/
# Coverage
coverage.txt
\ No newline at end of file
......@@ -27,7 +27,7 @@ deps:
.PHONY: test
test:
go test -v -race -cover `go list ./... | grep -v github.com/SkyAPM/go2sky/reporter/grpc`
go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic `go list ./... | grep -v github.com/SkyAPM/go2sky/reporter/grpc`
.PHONY: proto-gen
proto-gen:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册