File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed
Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 22 "version" : 1 ,
33 "isRoot" : true ,
44 "tools" : {
5- "dotnet-sonarscanner" : {
6- "version" : " 9.0.2" ,
7- "commands" : [
8- " dotnet-sonarscanner"
9- ],
10- "rollForward" : false
11- },
125 "nbgv" : {
136 "version" : " 3.7.115" ,
147 "commands" : [
Original file line number Diff line number Diff line change 1818 uses : actions/checkout@v4
1919 with :
2020 fetch-depth : 0
21- - name : Update Java SDK for SonarQube
22- uses : actions/setup-java@v4
23- with :
24- distribution : ' microsoft'
25- java-version : ' 21'
2621 - name : Setup .NET versions
2722 uses : actions/setup-dotnet@v4
2823 with :
@@ -34,23 +29,12 @@ jobs:
3429 run : dotnet --info
3530 - name : Restore dotnet tools
3631 run : dotnet tool restore
37- - name : Prepare sonarqube
38- if : ${{ github.actor != 'dependabot[bot]' }}
39- env :
40- SONAR_TOKEN : ${{secrets.SONAR_TOKEN}}
41- run : dotnet sonarscanner begin -d:sonar.host.url=https://sonarcloud.io -organization:testablehttpclient -key:testablehttpclient_TestableHttpClient -version:`dotnet nbgv get-version --variable NuGetPackageVersion` -d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml -d:sonar.token=${{env.SONAR_TOKEN}}
4232 - name : Restore dependencies
4333 run : dotnet restore
4434 - name : Build source code
4535 run : dotnet build --configuration Release --no-restore
4636 - name : Test with dotnet
4737 run : dotnet test --configuration Release --no-build --collect="Code Coverage" --framework="net8.0"
48- - name : Upload sonarqube results
49- if : ${{ github.actor != 'dependabot[bot]' }}
50- env :
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52- SONAR_TOKEN : ${{secrets.SONAR_TOKEN}}
53- run : dotnet sonarscanner end -d:sonar.token=${{env.SONAR_TOKEN}}
5438 - name : Check source file format
5539 run : dotnet format --no-restore --verify-no-changes
5640 continue-on-error : true
You can’t perform that action at this time.
0 commit comments