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