Skip to content

Commit f0f0112

Browse files
authored
add Codecov (#6)
1 parent d93f0c7 commit f0f0112

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ jobs:
3838

3939
- name: Run tests
4040
run: make test
41+
42+
- name: Upload coverage reports to Codecov
43+
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
44+
with:
45+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ implementation.md
8686

8787
# Added by goreleaser init:
8888
dist/
89+
90+
coverage.txt

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build:
3838

3939
# Test
4040
test:
41-
$(GO) test -v ./...
41+
$(GO) test -coverprofile=coverage.txt -v ./...
4242

4343
# fmt
4444
fmt:

0 commit comments

Comments
 (0)