Update sonarcloud.yml

This commit is contained in:
Michael Telatynski
2024-04-29 17:22:32 +01:00
committed by GitHub
parent 3ae0dab47a
commit 8faed02cc5
+2 -2
View File
@@ -56,9 +56,9 @@ jobs:
- id: extra_args
run: |
coverage=$(find coverage -type f -name '*lcov.info' -printf '%f,' | tr -d '\r\n' | sed 's/,$//g')
coverage=$(find coverage -type f -name '*lcov.info' -printf '%h/%f,' | tr -d '\r\n' | sed 's/,$//g')
echo "sonar.javascript.lcov.reportPaths=$coverage" >> sonar-project.properties
reports=$(find coverage -type f -name 'jest-sonar-report*.xml' -printf '%f,' | tr -d '\r\n' | sed 's/,$//g')
reports=$(find coverage -type f -name 'jest-sonar-report*.xml' -printf '%h/%f,' | tr -d '\r\n' | sed 's/,$//g')
echo "sonar.testExecutionReportPaths=$reports" >> sonar-project.properties
- name: "🩻 SonarCloud Scan"