mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-15 15:02:24 +00:00
fix(sonar): fail after coverage generation errors
This commit is contained in:
1 parent
20ebee3cb1
commit
6a0e2fae07
2 files changed
+15
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user