diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 422319bfd..1368c7642 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -58,4 +58,4 @@ jobs: with: args: > -Dsonar.projectVersion=${{ steps.app-version.outputs.version }} - -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info + -Dsonar.javascript.lcov.reportPaths=coverage/merged/lcov.info diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cad1aa60e..b54944b81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,3 +44,17 @@ jobs: - name: Run tests run: pnpm turbo test --cache-dir=".turbo" -- --maxWorkers=33% + + - name: Merge coverage reports + run: | + mkdir -p coverage/merged + lcov -a apps/nextjs/coverage/lcov-report/lcov-info.lcov \ + -a packages/aila/coverage/lcov-report/lcov-info.lcov \ + -a packages/ingest/coverage/lcov-report/lcov-info.lcov \ + -o coverage/merged/lcov.info + + - name: Upload coverage artifact + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage/merged/lcov.info