File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,19 @@ jobs:
4444 mkdir -p ./.sonar/scanner
4545 dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner
4646
47- - name : Run SonarQube analysis
47+ - name : SonarQube begin analysis
4848 env :
4949 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
5050 run : |
5151 ./.sonar/scanner/dotnet-sonarscanner begin /k:"PathfinderHonorManager_PathfinderHonorManagerAPI" /o:"pathfinderhonormanager" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="PathfinderHonorManager.Tests/TestResults/coverage.opencover.xml"
52- dotnet build
53- ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
52+
53+ - name : Build solution (SonarQube)
54+ run : dotnet build --no-incremental
55+
56+ - name : SonarQube end analysis
57+ env :
58+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
59+ run : ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
5460
5561 test :
5662 name : Test
6066
6167 - uses : ./.github/actions/setup-dotnet
6268
69+ - name : Build solution
70+ run : dotnet build --no-incremental
71+
6372 - name : Test with the dotnet CLI (OpenCover)
6473 run : dotnet test PathfinderHonorManager.Tests/PathfinderHonorManager.Tests.csproj /p:CollectCoverage=true /p:CoverletOutput=TestResults/coverage.opencover.xml /p:CoverletOutputFormat=opencover
6574
You can’t perform that action at this time.
0 commit comments