Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit d33c39d

Browse files
committed
ci: Fixed the collect of code coverage in .NET 7
1 parent 167db47 commit d33c39d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
6969
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
70+
CollectCoverage: true # Hotfix for .NET 7
71+
CoverletOutputFormat: opencover # Hotfix for .NET 7
7072
shell: pwsh
7173
run: |
7274
.\.sonar\scanner\dotnet-sonarscanner begin /k:"${{ secrets.SONAR_PROJECT_KEY }}" /o:"${{ secrets.SONAR_ORGANIZATION }}" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"

0 commit comments

Comments
 (0)