Skip to content

Commit eae0429

Browse files
author
Brian Cummings
committed
Yet another coverage fix attempt
1 parent d140222 commit eae0429

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/main_pathfinderhonormanager.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -60,6 +66,9 @@ jobs:
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

0 commit comments

Comments
 (0)