mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-10-13 16:49:18 +00:00
[ci] Add coverage report (#204)
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
55157301e5
commit
d5339f331c
6
.github/workflows/audit.yaml
vendored
6
.github/workflows/audit.yaml
vendored
@ -59,4 +59,8 @@ jobs:
|
||||
run: (golangci-lint run && cd lib && golangci-lint run)
|
||||
|
||||
- name: Run tests
|
||||
run: go test -race -vet=off ./...
|
||||
run: |
|
||||
# Exclude generated .pb.go and .pb.gw.go files from test and coverage
|
||||
go test -coverprofile cover.out -race -vet=off -v $(go list ./... | grep -v types)
|
||||
# Print coverage by function
|
||||
go tool cover -func=cover.out
|
||||
|
Loading…
x
Reference in New Issue
Block a user