Skip to content

Commit

Permalink
fix: missing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
JBR90 committed Nov 28, 2024
1 parent 99c4b69 commit d5db6b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d5db6b0

Please sign in to comment.