From 6bb2f91249ccae3fc4bb5f9e2983a52fd3820b6b Mon Sep 17 00:00:00 2001 From: SonarTech Date: Tue, 16 Sep 2025 11:42:18 +0200 Subject: [PATCH 1/3] Test GH Action --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7f731d..cdee05f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: /Collect:"Code Coverage;Format=Xml" /ResultsDirectory:"${{ env.COVERAGE_RESULTS }}" - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v4 + uses: SonarSource/sonarqube-scan-action@9e3b4566ddf746ecad637e9e760676f10e8229d6 env: SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} # Put the name of your token here with: From 693b2b5e6bbf7fae3b18871804eaf64501acca69 Mon Sep 17 00:00:00 2001 From: SonarTech Date: Tue, 16 Sep 2025 15:31:45 +0200 Subject: [PATCH 2/3] Update GH Action --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdee05f..ffb571f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,15 +34,15 @@ jobs: msbuild test2\test2.vcxproj - name: Run tests with coverage run: > - vstest.console.exe test1\*\test1.dll test2\*\test2.dll - /EnableCodeCoverage - /Collect:"Code Coverage;Format=Xml" + vstest.console.exe test1\*\test1.dll test2\*\test2.dll + /EnableCodeCoverage + /Collect:"Code Coverage;Format=Xml" /ResultsDirectory:"${{ env.COVERAGE_RESULTS }}" - name: SonarQube Scan uses: SonarSource/sonarqube-scan-action@9e3b4566ddf746ecad637e9e760676f10e8229d6 env: SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} # Put the name of your token here - with: - args: > - --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" + with: + args: > + --define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json --define sonar.cfamily.vscoveragexml.reportsPath="${{ env.COVERAGE_RESULTS }}/*/*.xml" From 6bc4cf2efa945c29a4cc93c1e8afd02282eb77cd Mon Sep 17 00:00:00 2001 From: SonarTech Date: Tue, 16 Sep 2025 15:37:26 +0200 Subject: [PATCH 3/3] Update GH Action --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffb571f..3e70a25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,4 +45,4 @@ jobs: with: args: > --define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json - --define sonar.cfamily.vscoveragexml.reportsPath="${{ env.COVERAGE_RESULTS }}/*/*.xml" + --define "sonar.cfamily.vscoveragexml.reportsPath=${{ env.COVERAGE_RESULTS }}/*/*.xml"