mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
Geneate and upload the test coverage report to codecove.io
This commit is contained in:
parent
24e3094d2a
commit
72e95e88ac
2 changed files with 6 additions and 0 deletions
|
@ -19,3 +19,6 @@ install:
|
|||
|
||||
script: make test
|
||||
|
||||
after_success:
|
||||
- make test-coverage
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
3
Makefile
3
Makefile
|
@ -19,6 +19,9 @@ test: bootstrap
|
|||
gosec ./...
|
||||
ginkgo -r -v
|
||||
|
||||
test-coverage:
|
||||
go test -race -coverprofile=coverage.txt -covermode=atomic
|
||||
|
||||
build:
|
||||
go build -o $(BIN) ./cmd/gosec/
|
||||
|
||||
|
|
Loading…
Reference in a new issue