Skip to content

Commit

Permalink
ci: Add codecov coverage upload step (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Jul 22, 2020
1 parent a1ff20f commit f357bd8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
comment: false
coverage:
status:
project: off
patch: off
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,10 @@ jobs:
-
name: Run tests
run: make test
-
name: Upload code coverage report
# TODO: Switch to "v1" when https://github.com/codecov/codecov-action/issues/100 is addressed
uses: codecov/codecov-action@v1.0.11
with:
file: coverage.txt
env_vars: "GOOS,GOARCH"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
.idea/
coverage.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ fmt:
go run github.com/mh-cbon/go-fmt-fail ./...

test:
go test -v -cover ./...
go test -v -coverprofile=coverage.txt -covermode=atomic ./...

.PHONY: fmt test

0 comments on commit f357bd8

Please sign in to comment.