Generate coverage when tests are run (#64)

* Generate coverage when tests are run
* Use docker's codecov account
This commit is contained in:
James Carnegie
2024-06-24 14:26:07 +01:00
committed by GitHub
parent 7586f4dfc4
commit 742f98fbeb
2 changed files with 11 additions and 1 deletions

View File

@@ -26,4 +26,12 @@ jobs:
with:
token: ${{ secrets.TC_CLOUD_TOKEN }}
- name: go test
run: go test ./...
run: go test -v ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}