Skip to content

Commit b4ba9a5

Browse files
committed
build: add codecov upload
1 parent 7bfde44 commit b4ba9a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,9 @@ jobs:
6060
with:
6161
go-version: "1.24"
6262
- name: Test with -race
63-
run: go test -v -race ./...
63+
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
64+
- name: Upload coverage to Codecov
65+
uses: codecov/codecov-action@v5
66+
with:
67+
fail_ci_if_error: true
68+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)