From 5223510d3f5790ecfaa0ff558da79aa4d8bcd1fc Mon Sep 17 00:00:00 2001 From: saimedhi Date: Fri, 27 Sep 2024 16:07:44 -0700 Subject: [PATCH] Add Codecov for test coverage reporting - v4.5.0 uploader Signed-off-by: saimedhi --- .github/workflows/build-and-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7824e994..004020c8 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -48,8 +48,9 @@ jobs: - name: Uploads coverage uses: codecov/codecov-action@v3 with: - token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # TODO: once github actions supports windows and macos docker containers, we can # merge these in to the above step's matrix, including adding windows support @@ -104,6 +105,7 @@ jobs: - name: Uploads coverage uses: codecov/codecov-action@v3 with: - token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}