File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 2525 curl -L https://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.9.0/OpenCppCoverageSetup-x64-0.9.9.0.exe -o OpenCppCoverageSetup.exe
2626 Start-Process -FilePath .\OpenCppCoverageSetup.exe -ArgumentList "/SUPRESSMSGBOXES /NORESTART /VERYSILENT" -NoNewWindow -Wait
2727
28- - name : Install sonar-scanner and build-wrapper
29- uses : sonarsource/sonarcloud-github-c-cpp @antonio/SCCPPGHA-10-rebranding-forwarding
28+ - name : Install build-wrapper
29+ uses : sonarsource/sonarqube-scan-action/install-build-wrapper @antonio/SCCPPGHA-10-rebranding-forwarding
3030
3131 - name : Run build-wrapper
3232 run : |
@@ -35,14 +35,15 @@ jobs:
3535 run : |
3636 msbuild test1\test1.vcxproj
3737 msbuild test2\test2.vcxproj
38- - name : Run tests with coverage
38+ - name : Install and run tests with coverage
3939 run : |
4040 &"C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --cover_children --sources=$(pwd) --modules test*\*\test*.dll "--export_type=cobertura:cobertura.xml" -- vstest.console.exe test1\*\test1.dll test2\*\test2.dll
4141 - name : Run sonar-scanner
42+ uses : sonarsource/sonarqube-scan-action@antonio/SCCPPGHA-10-rebranding-forwarding
4243 env :
43- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4445 SONAR_TOKEN : ${{ secrets.SONARCLOUD_TOKEN }} # Put the name of your token here
45- run : >
46- sonar-scanner
47- --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
48- --define sonar.cfamily.cobertura.reportPaths="cobertura.xml"
46+ with :
47+ args : >
48+ --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
49+ --define sonar.cfamily.cobertura.reportPaths="cobertura.xml"
You can’t perform that action at this time.
0 commit comments