Update how the test coverage is generated

This commit is contained in:
Matthieu MOREL 2021-05-07 17:01:09 +02:00 committed by GitHub
parent c4f5932ab7
commit f4ea33d5f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -56,5 +56,4 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
fail_ci_if_error: true

View file

@ -41,7 +41,7 @@ sec:
./$(BIN) ./...
test-coverage: install-test-deps
go test -race -coverprofile=coverage.txt -covermode=atomic
go test -race -v -count=1 -coverprofile=coverage.out ./...
build:
go build -o $(BIN) ./cmd/gosec/