Add coverage (#15)

* Add coverage

* Add codecov.yml
pull/18/head
Malachi Soord 2021-06-08 22:40:53 +02:00 committed by GitHub
parent e611bf2ac4
commit 92ac9c2b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -12,17 +12,17 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: make build
- name: Test
run: make test
run: make test-with-coverage
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out

View File

@ -27,3 +27,6 @@ clean:
test:
go test -tags=unit -timeout=600s -v ./...
test-with-coverage:
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out

4
codecov.yml 100644
View File

@ -0,0 +1,4 @@
codecov:
require_ci_to_pass: no
comment: false