From 8faed02cc51d3d048af5aeb2c04ea60f8d41bd88 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 Apr 2024 17:22:32 +0100 Subject: [PATCH] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index edbbaa261..5fbab9c77 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -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"