diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7f731d..3e70a25 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@v4 + 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" - --define sonar.cfamily.vscoveragexml.reportsPath="${{ env.COVERAGE_RESULTS }}/*/*.xml" + with: + args: > + --define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json + --define "sonar.cfamily.vscoveragexml.reportsPath=${{ env.COVERAGE_RESULTS }}/*/*.xml"