Chore: Integrate coverage reporting into CI (#479)

This commit is contained in:
Allen Hutchison 2025-05-22 13:47:12 -07:00 committed by GitHub
parent 3787aa78cd
commit 2eb4b34aa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -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