mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Update how the test coverage is generated
This commit is contained in:
parent
c4f5932ab7
commit
f4ea33d5f8
2 changed files with 1 additions and 2 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -56,5 +56,4 @@ jobs:
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
file: ./coverage.txt
|
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -41,7 +41,7 @@ sec:
|
||||||
./$(BIN) ./...
|
./$(BIN) ./...
|
||||||
|
|
||||||
test-coverage: install-test-deps
|
test-coverage: install-test-deps
|
||||||
go test -race -coverprofile=coverage.txt -covermode=atomic
|
go test -race -v -count=1 -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -o $(BIN) ./cmd/gosec/
|
go build -o $(BIN) ./cmd/gosec/
|
||||||
|
|
Loading…
Reference in a new issue