From 6e9738306f856f7a0353aa860681761df5cbf70f Mon Sep 17 00:00:00 2001 From: notaphplover Date: Tue, 22 Oct 2024 15:37:43 +0200 Subject: [PATCH] Update collect coverage action to rely on v4 (#1588) * fix: update collect coverage action to rely on v4 * fix: upgrade upload artifact action * chore: update ci job to override artifact upload --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90aa72bdb..b5597765e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,9 +31,10 @@ jobs: - name: Run tests run: npm test --coverage - name: Store code coverage report - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverage + overwrite: true path: coverage/ Build: @@ -61,6 +62,7 @@ jobs: Upload_Coverage_Report: name: Upload coverage report to codecov + environment: CI needs: [Testing] runs-on: ubuntu-latest steps: @@ -74,7 +76,8 @@ jobs: name: coverage path: coverage/ - name: Codecov Upload - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: directory: coverage/ fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}