From 3d0ba3e78cabaf5f1262c5b5b16ebabad974fa87 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Fri, 29 Dec 2023 14:05:27 +0000 Subject: [PATCH] feat: coverage reports (#819) * Update test.yaml Signed-off-by: Alex Jones * Update test.yaml Signed-off-by: Alex Jones --------- Signed-off-by: Alex Jones --- .github/workflows/test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1813554ead..ac43581fa7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,8 +23,10 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - - name: Unit Test - run: make test + - name: Run coverage + run: go test ./... -race -coverprofile=coverage.out -covermode=atomic + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 # - name: Fmt Test # run: fmtFiles=$(make fmt); if [ "$fmtFiles" != "" ];then exit 1; fi