From b8dd1bb03824c09d2e62aa976bfe228a6fa5b84b Mon Sep 17 00:00:00 2001 From: schristoff <167717759+schristoff-du@users.noreply.github.com> Date: Wed, 22 May 2024 11:50:35 -0600 Subject: [PATCH] chore: add codecov (#2529) Signed-off-by: schristoff <28318173+schristoff@users.noreply.github.com> Co-authored-by: schristoff <28318173+schristoff@users.noreply.github.com> --- .github/workflows/test-unit.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index 327e7052ad..f3425c1098 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -25,9 +25,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Run coverage + run: go test -race -coverprofile=coverage.out -covermode=atomic + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - name: Setup golang uses: ./.github/actions/golang - name: Run unit tests - run: make test-unit + run: make test-unit \ No newline at end of file