diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 1286ae7..3016683 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -21,25 +21,25 @@ jobs: run: | npm ci npm run lint - # npm run test - # - name: Save code coverage to artifact - # uses: actions/upload-artifact@v4 - # with: - # name: code-coverage - # path: "coverage/clover.xml" - # retention-days: 5 - # upload-coverage: - # name: Upload code coverage - # runs-on: ubuntu-latest - # needs: - # - lint-test - # steps: - # - name: Fetch code coverage artifact - # uses: actions/download-artifact@v4 - # with: - # name: code-coverage - # - name: Upload coverage to Codecov - # uses: codecov/codecov-action@v4 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # fail_ci_if_error: true + npm run test + - name: Save code coverage to artifact + uses: actions/upload-artifact@v4 + with: + name: code-coverage + path: "coverage/clover.xml" + retention-days: 5 + upload-coverage: + name: Upload code coverage + runs-on: ubuntu-latest + needs: + - lint-test + steps: + - name: Fetch code coverage artifact + uses: actions/download-artifact@v4 + with: + name: code-coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true