diff options
| author | Allen Hutchison <[email protected]> | 2025-05-22 13:47:12 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-22 13:47:12 -0700 |
| commit | 2eb4b34aa718e7a4009ed6398784d3a30f622f73 (patch) | |
| tree | 30bbfa9f4b1158345b40de3d2b3f5b9bf4b5129c | |
| parent | 3787aa78cd15ba06de9a8c0396f4ba11f740e2e0 (diff) | |
Chore: Integrate coverage reporting into CI (#479)
| -rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 176dca8f..7e2f63ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,9 +87,12 @@ jobs: - name: Install dependencies for testing run: npm ci # Install fresh dependencies using the downloaded package-lock.json - - name: Run tests + - name: Run tests (generate JUnit XML) run: npm run test:ci --workspaces --if-present + - name: Collect coverage + run: npm run coverage # This will run tests again, but also generate coverage + - name: Publish Test Report uses: dorny/test-reporter@v1 if: always() @@ -98,3 +101,10 @@ jobs: path: packages/*/junit.xml reporter: java-junit fail-on-error: 'false' + + - name: Upload coverage reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: coverage-reports-${{ matrix.node-version }} + path: packages/*/coverage |
