From 5df9705bae9a749dfd90a1599022da0df3799f72 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 3 Nov 2022 14:12:42 +0000 Subject: [PATCH] Update sonarqube.yml --- .github/workflows/sonarqube.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 95035deed..61768adad 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -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 }}