build: add coverage report to ci script

This commit is contained in:
mehanizm
2020-04-15 11:05:21 +03:00
parent dc99a5d0e6
commit f7b2756171

View File

@@ -26,5 +26,12 @@ jobs:
run: |
go get -v -t -d ./...
- name: Build
run: go test
- name: Generate coverage report
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
name: codecov-umbrella
fail_ci_if_error: true