Skip to content

Commit e86d11f

Browse files
authored
chore: codecov (#8)
1 parent b43a034 commit e86d11f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Go Test
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ main ]
66
pull_request:
7-
branches: [main]
7+
branches: [ main ]
88

99
jobs:
1010
test:
@@ -27,3 +27,11 @@ jobs:
2727

2828
- name: Run tests
2929
run: go test ./... -v
30+
31+
- name: Run tests with coverage
32+
run: go test -coverprofile=coverage.txt
33+
34+
- name: Upload results to Codecov
35+
uses: codecov/codecov-action@v5
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)