File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,11 @@ jobs:
2828 dotnet tool update dotnet-sonarscanner --global
2929 dotnet tool update dotnet-coverage --global
3030 - name : Build and analyze
31- if : ${{ env.SONAR_TOKEN != null }}
3231 env :
3332 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3433 SONAR_TOKEN : ${{ secrets.sonar-auth-token }}
3534 run : |
36- dotnet sonarscanner begin /k:"philips-software_roslyn-analyzers" /o:"philips-software" /d:sonar.login ="${{ secrets.sonar-auth-token }} " /d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" /d:sonar.host.url="https://sonarcloud.io"
35+ dotnet sonarscanner begin /k:"philips-software_roslyn-analyzers" /o:"philips-software" /d:sonar.token ="$SONAR_TOKEN " /d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" /d:sonar.host.url="https://sonarcloud.io"
3736 dotnet build --configuration Debug
38- dotnet coverage collect 'dotnet test' -f xml -o 'coverage.xml'
39- dotnet sonarscanner end /d:sonar.login ="${{ secrets.sonar-auth-token }} "
37+ dotnet coverage collect 'dotnet test' -f xml -o 'coverage.xml'
38+ dotnet sonarscanner end /d:sonar.token ="$SONAR_TOKEN "
You can’t perform that action at this time.
0 commit comments