@@ -15,24 +15,24 @@ jobs:
1515 uses : actions/setup-java@v4
1616 with :
1717 java-version : 17
18- distribution : ' zulu' # Alternative distribution options are available.
18+ distribution : ' zulu' # Alternative distribution options are available
1919 - uses : actions/checkout@v4
2020 with :
2121 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
22- - name : Cache SonarCloud packages
22+ - name : Cache SonarQube Cloud packages
2323 uses : actions/cache@v4
2424 with :
2525 path : ~\sonar\cache
2626 key : ${{ runner.os }}-sonar
2727 restore-keys : ${{ runner.os }}-sonar
28- - name : Cache SonarCloud scanner
28+ - name : Cache SonarQube Cloud scanner
2929 id : cache-sonar-scanner
3030 uses : actions/cache@v4
3131 with :
3232 path : ${{ runner.temp }}\scanner
3333 key : ${{ runner.os }}-sonar-scanner
3434 restore-keys : ${{ runner.os }}-sonar-scanner
35- - name : Install SonarCloud scanner
35+ - name : Install SonarQube Cloud scanner
3636 if : steps.cache-sonar-scanner.outputs.cache-hit != 'true'
3737 shell : pwsh
3838 run : |
@@ -44,13 +44,13 @@ jobs:
4444 dotnet tool install --global dotnet-coverage
4545 - name : Build and analyze
4646 env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4848 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4949 shell : pwsh
5050 run : |
5151 $ErrorActionPreference = "Stop"
5252 $PSNativeCommandUseErrorActionPreference = $true
5353 ${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"rufer7_github-sonarcloud-integration" /o:"rufer7" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.projectBaseDir="D:\a\github-sonarcloud-integration\github-sonarcloud-integration" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.terraform.provider.azure.version=3.100.0
5454 dotnet build .\src\ArbitrarySolution.sln --configuration Release
55- dotnet-coverage collect 'dotnet test .\src\ArbitraryProject.Tests\ArbitraryProject.Tests.csproj' -f xml -o 'coverage.xml'
55+ dotnet-coverage collect 'dotnet test .\src\ArbitraryProject.Tests\ArbitraryProject.Tests.csproj' -f xml -o 'coverage.xml'
5656 ${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
0 commit comments