From a3f97571d5f92194d34e79947464d4b97527ca02 Mon Sep 17 00:00:00 2001 From: Federico Poli Date: Thu, 1 Feb 2024 13:17:15 +0100 Subject: [PATCH] Update codecov action --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08fca80c..9a374f78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,20 +42,21 @@ jobs: - name: Run tests (headless) uses: coactions/setup-xvfb@v1 id: runTests - with: - run: npm test --full-trace env: GITHUB_TOKEN: ${{ secrets.VIPER_ADMIN_TOKEN }} + with: + run: npm test --full-trace - name: Collect coverage if: ${{ steps.runTests.outcome == 'success' }} run: npx nyc report --reporter=lcov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 if: ${{ steps.runTests.outcome == 'success' }} + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: - token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage/lcov.info # Publish the extension when we are on master and the version specified in