chore(ci): add coverage upload

This commit is contained in:
Simon Aronsson 2021-01-10 16:39:45 +01:00
parent 5532c4e905
commit 3369d2427c
No known key found for this signature in database
GPG key ID: 8DA57A5FD341605B
2 changed files with 9 additions and 1 deletions

View file

@ -47,7 +47,11 @@ jobs:
go-version: 1.15.x
- name: Run tests
run: |
go test ./... -coverprofile coverage.out
CGO_ENABLED=0 go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Publish coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
name: Build