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

code coverage (#54)

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