Skip to content

Commit

Permalink
Add codecov to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Jul 29, 2020
1 parent d686eab commit 55729a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
go-version: 1.14.x
- name: Run tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
coverage.txt

# Dependency directories (remove the comment below to include it)
# vendor/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ vet:
go vet ./...

test: tidy fmt vet
go test ./... -coverprofile cover.out
go test -race -coverprofile=coverage.txt -covermode=atomic ./...

release:
git checkout master
Expand Down

0 comments on commit 55729a1

Please sign in to comment.