@@ -13,11 +13,11 @@ jobs:
1313 with :
1414 fetch-depth : 0 # fetch-depth is needed for GitVersion
1515 - name : Install GitVersion # Install and calculate the new version with GitVersion
16- uses : gittools/actions/gitversion/setup@v4.1 .0
16+ uses : gittools/actions/gitversion/setup@v4.2 .0
1717 with :
1818 versionSpec : 6.x
1919 - name : Determine Version
20- uses : gittools/actions/gitversion/execute@v4.1 .0
20+ uses : gittools/actions/gitversion/execute@v4.2 .0
2121 id : gitversion # step id used as reference for output values
2222 - name : Display GitVersion outputs
2323 run : |
2626 - name : Setup .NET
2727 uses : actions/setup-dotnet@v5
2828 with :
29- dotnet-version : 8 .0.x
29+ dotnet-version : 10 .0.x
3030 - name : Run automated unit and integration tests
3131 run : dotnet test PipelinesToActions/PipelinesToActions.Tests/PipelinesToActions.Tests.csproj --configuration Debug -e:CollectCoverage=true -e:CoverletOutput=TestResults/ -e:CoverletOutputFormat=lcov
3232 - run : |
@@ -42,22 +42,22 @@ jobs:
4242 run : dotnet publish PipelinesToActions/PipelinesToActions/PipelinesToActionsWeb.csproj --configuration Release -p:Version='${{ steps.gitversion.outputs.MajorMinorPatch }}'
4343 # Publish build artifacts to GitHub
4444 - name : Upload website build artifacts back to GitHub
45- uses : actions/upload-artifact@v4
45+ uses : actions/upload-artifact@v5
4646 with :
4747 name : webapp
48- path : PipelinesToActions/PipelinesToActions/bin/Release/net8 .0/publish
48+ path : PipelinesToActions/PipelinesToActions/bin/Release/net10 .0/publish
4949
5050
5151 sonarCloud :
5252 name : Run SonarCloud analysis
5353 runs-on : ubuntu-latest
54- if : github.ref == 'refs/heads/main'
54+ if : false && github.ref == 'refs/heads/main'
5555 steps :
5656 - name : Run Sonarcloud test
5757 uses : samsmithnz/SamsDotNetSonarCloudAction@v2.1
5858 with :
5959 projects : ' PipelinesToActions/PipelinesToActions/PipelinesToActionsWeb.csproj,PipelinesToActions/PipelinesToActions.Tests/PipelinesToActions.Tests.csproj'
60- dotnet-version : ' 8 .0.x'
60+ dotnet-version : ' 10 .0.x'
6161 sonarcloud-organization : samsmithnz-github
6262 sonarcloud-project : samsmithnz_AzurePipelinesToGitHubActionsConverterWeb
6363 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
6868 runs-on : windows-latest
6969 needs :
7070 - build
71- - sonarCloud
71+ # - sonarCloud
7272 # Only deploy if running off the main branch - we don't want to deploy off feature branches
7373 if : github.ref == 'refs/heads/main'
7474 steps :
8181 with :
8282 creds : ${{ secrets.AZURE_SP }}
8383 - name : Download webapp artifact # Download the artifacts from GitHub
84- uses : actions/download-artifact@v5.0.0
84+ uses : actions/download-artifact@v5
8585 with :
8686 name : webapp
8787 path : webapp
0 commit comments