feat: coverage reports (#819)

* Update test.yaml

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

* Update test.yaml

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

---------

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
Alex Jones
2023-12-29 14:05:27 +00:00
committed by GitHub
parent 91613baa5c
commit 3d0ba3e78c

View File

@@ -23,8 +23,10 @@ jobs:
with: with:
go-version: ${{ env.GO_VERSION }} go-version: ${{ env.GO_VERSION }}
- name: Unit Test - name: Run coverage
run: make test run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
# - name: Fmt Test # - name: Fmt Test
# run: fmtFiles=$(make fmt); if [ "$fmtFiles" != "" ];then exit 1; fi # run: fmtFiles=$(make fmt); if [ "$fmtFiles" != "" ];then exit 1; fi