Skip to content

Commit d6e2a7d

Browse files
committed
Rename coverage file to coverage.txt per Codecov docs
1 parent 1f89f0b commit d6e2a7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
cache: true
2525

2626
- name: Run tests
27-
run: go test -v -race -coverprofile=coverage.out ./...
27+
run: go test -v -race -coverprofile=coverage.txt ./...
2828

2929
- name: Check coverage
3030
run: |
31-
coverage=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//')
31+
coverage=$(go tool cover -func=coverage.txt | grep total | awk '{print $3}' | sed 's/%//')
3232
echo "Coverage: ${coverage}%"
3333
if (( $(echo "$coverage < 75" | bc -l) )); then
3434
echo "Coverage is below 75%"
@@ -39,6 +39,6 @@ jobs:
3939
uses: codecov/codecov-action@v5
4040
with:
4141
token: ${{ secrets.CODECOV_TOKEN }}
42-
files: ./coverage.out
42+
files: ./coverage.txt
4343
flags: unittests
4444
name: codecov-${{ matrix.go-version }}

0 commit comments

Comments
 (0)