mirror of https://github.com/dapr/go-sdk.git
cover on push (#78)
* cover on push * newline * badge * test cover options * exluded examples * exclude cleanup
This commit is contained in:
parent
77ee60225a
commit
ab43a43e98
|
@ -0,0 +1,4 @@
|
|||
ignore:
|
||||
- "dapr/proto/**"
|
||||
- "example/**"
|
||||
|
|
@ -36,8 +36,11 @@ jobs:
|
|||
go mod vendor
|
||||
|
||||
- name: Test
|
||||
run: go test -v -count=1 -race ./...
|
||||
run: go test -v -count=1 -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
- name: Cover
|
||||
uses: codecov/codecov-action@v1
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v1
|
||||
with:
|
||||
|
|
|
@ -17,3 +17,4 @@ vendor
|
|||
|
||||
# docs
|
||||
golang.org
|
||||
coverage.txt
|
||||
|
|
7
Makefile
7
Makefile
|
@ -9,7 +9,12 @@ tidy: ## Updates the go modules
|
|||
go mod tidy
|
||||
|
||||
test: mod ## Tests the entire project
|
||||
go test -count=1 -race ./...
|
||||
go test -v \
|
||||
-count=1 \
|
||||
-race \
|
||||
-coverprofile=coverage.txt \
|
||||
-covermode=atomic \
|
||||
./...
|
||||
|
||||
cover: mod ## Displays test coverage in the client and service packages
|
||||
go test -coverprofile=cover-client.out ./client && go tool cover -html=cover-client.out
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Client library to help you build Dapr application in go. This client supports all public [Dapr APIs](https://github.com/dapr/docs/tree/master/reference/api) while focusing on idiomatic go experience and developer productivity.
|
||||
|
||||
[](https://github.com/dapr/go-sdk/actions?query=workflow%3ATest) [](https://github.com/dapr/go-sdk/actions?query=workflow%3ARelease) [](https://goreportcard.com/report/github.com/dapr/go-sdk) 
|
||||
[](https://github.com/dapr/go-sdk/actions?query=workflow%3ATest) [](https://github.com/dapr/go-sdk/actions?query=workflow%3ARelease) [](https://goreportcard.com/report/github.com/dapr/go-sdk)  [](https://codecov.io/gh/dapr/go-sdk)
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
Loading…
Reference in New Issue