@@ -24,15 +24,13 @@ jobs:
2424 dotnet-version : 9.0.x
2525
2626 - name : Install GitVersion
27- uses : gittools/actions/gitversion/setup@v3.1.3
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/[email protected] 34- with :
35- useConfigFile : true
33+ uses :
gittools/actions/gitversion/[email protected] 3634
3735 - name : Restore Packages
3836 run : dotnet restore "${{ env.solution-path }}"
@@ -81,24 +79,22 @@ jobs:
8179 dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
8280
8381 - name : Install GitVersion
84- uses : gittools/actions/gitversion/setup@v3.1.3
82+ uses : gittools/actions/gitversion/setup@v4.2.0
8583 with :
86- versionSpec : ' 6.0.5 '
84+ versionSpec : ' 6.4.0 '
8785
8886 - name : Determine Version
8987 id : gitversion
90- uses :
gittools/actions/gitversion/[email protected] 91- with :
92- useConfigFile : true
88+ uses :
gittools/actions/gitversion/[email protected] 9389
9490 - name : Build and analyze
9591 env :
9692 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
9793 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
9894 shell : powershell
9995 run : |
100- .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_netcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ secrets .SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io "
96+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"IowaComputerGurus_netcore.utilities" /o:"iowacomputergurus-github" /d:sonar.login="${{ env .SONAR_TOKEN }}"
10197 dotnet restore "${{ env.solution-path }}"
10298 dotnet build "${{ env.solution-path }}" --no-restore --configuration Release -p:version=${{ steps.gitversion.outputs.majorMinorPatch }}
10399 dotnet test "${{ env.solution-path }}" --no-build --configuration Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --logger "trx;LogFileName=unittests.trx"
104- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets .SONAR_TOKEN }}"
100+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ env .SONAR_TOKEN }}"
0 commit comments