fix(sonar): fail after coverage generation errors

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 12:51:55 +00:00
1 parent 20ebee3cb1
commit 6a0e2fae07
2 files changed
+15

No files matched your search

+6
View File
@@ -785,6 +785,12 @@ jobs:
-Dsonar.organization=storytold
-Dsonar.rust.lcov.reportPaths=lcov.info
"-Dsonar.cpd.exclusions=${{ steps.project.outputs.cpd }}"
- name: Fail on Rust coverage generation failure
if: steps.coverage.outcome == 'failure'
shell: bash
run: |
echo "::error::cargo llvm-cov failed to build the test archive or write lcov.info"
exit 1
- name: Fail on JavaScript/TypeScript test failures
if: steps.node-coverage.outputs.status != '' && steps.node-coverage.outputs.status != '0'
env: