Skip to content

Commit 1cb6e9b

Browse files
committed
ci: add codecov
1 parent dccc3e5 commit 1cb6e9b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
run: go build ./...
4747

4848
- name: Test
49-
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
49+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
5050

5151
- name: Coverage summary
52-
run: go tool cover -func=coverage.out | tail -1 >> $GITHUB_STEP_SUMMARY
52+
run: go tool cover -func=coverage.txt | tail -1 >> $GITHUB_STEP_SUMMARY
5353

54-
- uses: actions/upload-artifact@v7
54+
- name: Upload coverage reports to Codecov
55+
uses: codecov/codecov-action@v5
5556
with:
56-
name: coverage-report-${{ matrix.go-version }}
57-
path: coverage.out
57+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)