From 348067a79c183a08d708465e7b249587c38765f7 Mon Sep 17 00:00:00 2001 From: Mat Date: Tue, 22 Oct 2024 12:15:54 -0700 Subject: [PATCH] use github action for uploading codecov --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c844928378..e506c577f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,13 @@ jobs: exit 1 fi - - name: Upload coverage + # - name: Upload coverage + # if: github.repository == 'iron-fish/ironfish' + # run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} ROOT_PATH=$GITHUB_WORKSPACE/ yarn coverage:upload + + - name: Upload coverage v2 if: github.repository == 'iron-fish/ironfish' - run: CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} ROOT_PATH=$GITHUB_WORKSPACE/ yarn coverage:upload + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}