File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ jobs:
3737 run : |
3838 New-Item -Path .\.sonar\scanner -ItemType Directory
3939 dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
40- - name : Install code-coverage
40+ - name : Install coverlet
4141 shell : powershell
4242 run : |
43- dotnet tool install --global dotnet-coverage
43+ dotnet tool install --global coverlet.console
4444 - name : Build and analyze
4545 env :
4646 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4949 run : |
5050 dotnet --list-sdks
5151 dotnet --version
52- .\.sonar\scanner\dotnet-sonarscanner begin /k:"lduchosal_ipnetwork" /o:"lduchosal" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.scanner.scanAll=false /d:"sonar.verbose=true" /d:sonar.cs.vscoveragexml .reportsPaths=coverage.xml
52+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"lduchosal_ipnetwork" /o:"lduchosal" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.scanner.scanAll=false /d:"sonar.verbose=true" /d:sonar.cs.opencover .reportsPaths=coverage.xml
5353 dotnet build --no-incremental src
54- dotnet-coverage collect ' dotnet test src/ TestProject' -f xml -o ' coverage.xml'
54+ coverlet src\TestProject\bin\Debug\net10.0\TestProject.dll --target dotnet --targetargs " src\ TestProject\bin\Debug\net10.0\TestProject.dll" --format opencover --output coverage.xml
5555 .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
You can’t perform that action at this time.
0 commit comments