Skip to content

Commit 90dc3de

Browse files
committed
ci: integrate with codecov
1 parent 5303b51 commit 90dc3de

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@ jobs:
1717
go-version: 1.24
1818
- uses: actions/setup-go@v3
1919
- name: go test
20-
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
21-
- name: check test coverage
22-
uses: vladopajic/go-test-coverage@v2
20+
run: go test ./... -coverprofile=./coverage.txt
21+
- name: Upload coverage reports to Codecov
22+
uses: codecov/codecov-action@v5
2323
with:
24-
profile: cover.out
25-
threshold-total: 75
26-
27-
## when token is not specified (value '') this feature is turned off
28-
## in this example badge is created and committed only for main branch
29-
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
30-
## name of branch where badges are stored
31-
## ideally this should be orphan branch (see below how to create this branch)
32-
git-branch: badges
24+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)