Skip to content

Commit f4ea33d

Browse files
authored
Update how the test coverage is generated
1 parent c4f5932 commit f4ea33d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ jobs:
5656
uses: codecov/codecov-action@v1
5757
with:
5858
token: ${{ secrets.CODECOV_TOKEN }}
59-
file: ./coverage.txt
6059
fail_ci_if_error: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ sec:
4141
./$(BIN) ./...
4242

4343
test-coverage: install-test-deps
44-
go test -race -coverprofile=coverage.txt -covermode=atomic
44+
go test -race -v -count=1 -coverprofile=coverage.out ./...
4545

4646
build:
4747
go build -o $(BIN) ./cmd/gosec/

0 commit comments

Comments
 (0)