mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +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
|
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 ./...
|
gosec ./...
|
||||||
ginkgo -r -v
|
ginkgo -r -v
|
||||||
|
|
||||||
|
test-coverage:
|
||||||
|
go test -race -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -o $(BIN) ./cmd/gosec/
|
go build -o $(BIN) ./cmd/gosec/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue