@@ -24,13 +24,13 @@ jobs:
2424 dotnet-version : 9.0.x
2525
2626 - name : Install GitVersion
27- uses : gittools/actions/gitversion/setup@v3.1.1
27+ uses : gittools/actions/gitversion/setup@v4.2.0
2828 with :
29- versionSpec : ' 6.0.5 '
29+ versionSpec : ' 6.4.0 '
3030
3131 - name : Determine Version
3232 id : gitversion
33- uses : gittools/actions/gitversion/execute@v3.1.1
33+ uses : gittools/actions/gitversion/execute@v4.2.0
3434 with :
3535 useConfigFile : true
3636
@@ -86,23 +86,21 @@ jobs:
8686 dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
8787
8888 - name : Install GitVersion
89- uses : gittools/actions/gitversion/setup@v3.1.1
89+ uses : gittools/actions/gitversion/setup@v4.2.0
9090 with :
91- versionSpec : ' 6.0.5 '
91+ versionSpec : ' 6.4.0 '
9292
9393 - name : Determine Version
9494 id : gitversion
95- uses :
gittools/actions/gitversion/[email protected] 96- with :
97- useConfigFile : true
95+ uses :
gittools/actions/gitversion/[email protected] 9896
9997 - name : Build and analyze
10098 env :
10199 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
102100 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
103101 shell : powershell
104102 run : |
105- .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_aspnetcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ secrets .SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io " /n:"AspNetCore Utilities"
103+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_aspnetcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ env .SONAR_TOKEN }}" /n:"AspNetCore Utilities"
106104 dotnet restore "${{ env.solution-path }}"
107105 dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}
108106 dotnet test "${{ env.solution-path }}" --no-build --configuration Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --logger "trx;LogFileName=unittests.trx"
0 commit comments