Skip to content

Commit 553cec3

Browse files
committed
Upload coverage to codecov
1 parent 50ed6ae commit 553cec3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,10 @@ jobs:
4141

4242
- name: Test
4343
run: |
44-
go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
44+
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
4545
echo "Coverage: $(go tool cover -func=coverage.out | grep total | awk '{print $3}')"
46+
47+
- name: Upload to Codecov
48+
uses: codecov/codecov-action@v5
49+
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)