Skip to content

Commit

Permalink
chore(ci): add coverage reporting (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Tianpeng Wang <[email protected]>
  • Loading branch information
timonwong authored Aug 26, 2022
1 parent 649487f commit ae74b16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ jobs:
- name: Test
run: make test

- uses: codecov/codecov-action@v3
with:
files: cover.out
fail_ci_if_error: true
verbose: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ bin/
vendor/

dist/

cover.out
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test-deps:

.PHONY: test
test: test-deps
go test -v ./...
go test -v -covermode=atomic -coverprofile=cover.out -coverpkg ./... ./...

.PHONY: build
build:
Expand Down

0 comments on commit ae74b16

Please sign in to comment.