File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,14 @@ jobs:
3333 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3434 run : |
3535 dotnet tool install --global dotnet-sonarscanner
36+ dotnet tool install --global dotnet-coverage
3637 dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
3738
3839 - name : Build
39- run : dotnet build --no-restore /p:ContinuousIntegrationBuild=true
40+ run : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
4041
4142 - name : Run Tests and Compute Coverage
42- run : dotnet test SysML2.NET.sln --filter Category!=" Expected" --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/ coverage.json" /p:CoverletOutputFormat=\"opencover,json\ "
43+ run : dotnet-coverage collect "dotnet test SysML2.NET.sln --filter Category!=' Expected' --no-build --configuration Release" -f xml -o " coverage.xml "
4344
4445 - name : Sonarqube end
4546 run : dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
You can’t perform that action at this time.
0 commit comments