Update sonarqube.yml

This commit is contained in:
Michael Telatynski
2022-11-03 14:12:42 +00:00
parent 27bb79a29a
commit 5df9705bae
+3 -5
View File
@@ -28,9 +28,9 @@ jobs:
- id: extra_args
run: |
coverage=$(find coverage -type f -name '*lcov.info' | tr '\n' ',')
coverage=$(find coverage -type f -name '*lcov.info' | tr '\n' ',' | sed 's/,$//g')
echo "reportPaths=$coverage" >> $GITHUB_OUTPUT
reports=$(find coverage -type f -name 'jest-sonar-report*.xml' | tr '\n' ',')
reports=$(find coverage -type f -name 'jest-sonar-report*.xml' | tr '\n' ',' | sed 's/,$//g')
echo "testExecutionReportPaths=$reports" >> $GITHUB_OUTPUT
sonarqube:
@@ -40,6 +40,4 @@ jobs:
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
extra_args: |
-D"sonar.javascript.lcov.reportPaths=${{ needs.prepare.outputs.reportPaths }}"
-D"sonar.testExecutionReportPaths=${{ needs.prepare.outputs.testExecutionReportPaths }}"
extra_args: -Dsonar.javascript.lcov.reportPaths=${{ needs.prepare.outputs.reportPaths }} -Dsonar.testExecutionReportPaths=${{ needs.prepare.outputs.testExecutionReportPaths }}