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