Skip to content

Commit

Permalink
ci: Add codecov coverage upload step
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jul 22, 2020
1 parent a1ff20f commit 3168803
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
comment: false
coverage:
status:
project:
default:
branches:
- disabled_for_now
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 3168803

Please sign in to comment.