Skip to content

Commit 75433d2

Browse files
committed
Try Sonar 2
1 parent 50e510e commit 75433d2

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"regitlint"
1616
],
1717
"rollForward": false
18+
},
19+
"dotnet-reportgenerator-globaltool": {
20+
"version": "5.5.0",
21+
"commands": [
22+
"reportgenerator"
23+
],
24+
"rollForward": false
1825
}
1926
}
2027
}

.github/workflows/sonarcube.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
# TODO: Revert to OpenCover, see https://github.com/microsoft/testfx/issues/7104
7979
# /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
8080
dotnet sonarscanner begin /k:"SteeltoeOSS_steeltoe" /o:"steeltoeoss" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
81-
/d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths="${{ env.TEST_OUTPUT_DIRECTORY }}/*.xml"
81+
/d:sonar.host.url="https://sonarcloud.io" /d:sonar.coverageReportPaths="${{ env.TEST_OUTPUT_DIRECTORY }}/SonarQube.xml"
8282
8383
- name: Build solution
8484
run: dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release --verbosity minimal
@@ -96,7 +96,7 @@ jobs:
9696
uses: danielpalme/[email protected]
9797
with:
9898
reports: '${{ env.TEST_OUTPUT_DIRECTORY }}/*cobertura.xml'
99-
targetdir: 'coveragereport'
99+
targetdir: '${{ env.TEST_OUTPUT_DIRECTORY }}'
100100
reporttypes: 'SonarQube'
101101
filefilters: '-*.g.cs'
102102

versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<FluentAssertionsVersion>7.2.*</FluentAssertionsVersion>
1010
<MicrosoftAzureCosmosVersion>3.54.*</MicrosoftAzureCosmosVersion>
1111
<MicrosoftCodeAnalysisVersion>4.14.*</MicrosoftCodeAnalysisVersion>
12-
<MicrosoftTestingExtensionsCodeCoverageVersion>18.3.*-*</MicrosoftTestingExtensionsCodeCoverageVersion>
13-
<MicrosoftTestingPlatformVersion>2.1.*-*</MicrosoftTestingPlatformVersion>
12+
<MicrosoftTestingExtensionsCodeCoverageVersion>18.3.0-preview.25611.1</MicrosoftTestingExtensionsCodeCoverageVersion>
13+
<MicrosoftTestingPlatformVersion>2.1.0-preview.25611.7</MicrosoftTestingPlatformVersion>
1414
<MicrosoftSqlClientVersion>6.1.*</MicrosoftSqlClientVersion>
1515
<MockHttpVersion>7.0.*</MockHttpVersion>
1616
<MongoDbDriverVersion>3.5.*</MongoDbDriverVersion>

0 commit comments

Comments
 (0)