Skip to content

Commit 603ebe9

Browse files
Update SonarQube workflow to include coverage report paths and adjust test command for coverage collection
1 parent 9db262c commit 603ebe9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/SonarQube.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4343
shell: powershell
4444
run: |
45-
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"SpiceSharp_SpiceSharpParser" /o:"spicesharp" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
45+
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"SpiceSharp_SpiceSharpParser" /o:"spicesharp" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml"
4646
dotnet build src/SpiceSharp-Parser.sln
47+
dotnet test src/SpiceSharp-Parser.sln --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
4748
${{ runner.temp }}\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)