File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 2323 - name : Setup dotnet
2424 uses : actions/setup-dotnet@v4
2525 with :
26- dotnet-version : 6 .0.x # SDK Version to use.
26+ dotnet-version : 8 .0.x # SDK Version to use.
2727
2828 - name : Cache Nuget packages
2929 uses : actions/cache@v4
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ jobs:
1515 dotnet-version : 8.0.x # SDK Version to use.
1616
1717 - name : Setup MSBuild
18- uses : microsoft/setup-msbuild@v1.1
18+ uses : microsoft/setup-msbuild@v2
1919 with :
20- vs-version : 17.1 # Visual Studio Version to use.
20+ vs-version : 17.11 # Visual Studio Version to use.
2121
2222 - name : Setup VSTest
23- uses : darenm/Setup-VSTest@v1.2
23+ uses : darenm/Setup-VSTest@v1.3
2424
2525 - name : Cache Nuget packages
2626 uses : actions/cache@v4
Original file line number Diff line number Diff line change 11name : SonarCloud code analysis
22
3- on : [push]
3+ on : [push, pull_request, pull_request_target ]
44
55jobs :
66 analyze :
1616 - name : Setup dotnet
1717 uses : actions/setup-dotnet@v4
1818 with :
19- dotnet-version : 6 .0.x # SDK Version to use.
19+ dotnet-version : 8 .0.x # SDK Version to use.
2020
2121 - name : Set up JDK 21
2222 uses : actions/setup-java@v4
5151 restore-keys : ${{ runner.os }}-sonar-scanner
5252
5353 - name : Install SonarCloud scanner
54- if : steps.cache-sonar-scanner.outputs.cache-hit != 'true'
5554 shell : powershell
5655 run : |
5756 New-Item -Path .\.sonar\scanner -ItemType Directory
6362 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
6463 shell : powershell
6564 run : |
66- .\.sonar\scanner\dotnet-sonarscanner begin /k:"web-eid_web-eid-authtoken-validation-dotnet" /o:"web-eid" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.verbose=true /d:sonar.login ="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
65+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"web-eid_web-eid-authtoken-validation-dotnet" /o:"web-eid" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.verbose=true /d:sonar.token ="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
6766 dotnet build --configuration Release --no-restore src/WebEid.Security.sln
6867 dotnet test src/WebEid.Security.sln --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --results-directory "TestResults"
69- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login ="${{ secrets.SONAR_TOKEN }}"
68+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token ="${{ secrets.SONAR_TOKEN }}"
You can’t perform that action at this time.
0 commit comments