@@ -20,13 +20,13 @@ jobs:
2020 permissions :
2121 checks : write
2222 steps :
23- - uses : actions/checkout@v4
23+ - uses : actions/checkout@v6
2424 with :
2525 fetch-depth : 0
2626 - name : Setup .NET
27- uses : actions/setup-dotnet@v4
27+ uses : actions/setup-dotnet@v5
2828 with :
29- dotnet-version : 9 .0.x
29+ dotnet-version : 10 .0.x
3030 - name : Install and Configure Keyring
3131 if : ${{ matrix.os == 'ubuntu-latest' }}
3232 run : |
@@ -43,23 +43,23 @@ jobs:
4343 run : dotnet restore MSStore.CLI.sln /p:Configuration=Release
4444 - name : Build
4545 run : dotnet build MSStore.CLI.sln --no-restore /p:Configuration=Release
46- - name : Test net9 .0
47- run : dotnet run --project MSStore.CLI.UnitTests -f net9 .0 --no-build -c Release --coverage --coverage-output-format cobertura --report-trx --results-directory ./TestResults
48- - name : Test net9 .0-windows10.0.17763.0
46+ - name : Test net10 .0
47+ run : dotnet run --project MSStore.CLI.UnitTests -f net10 .0 --no-build -c Release --coverage --coverage-output-format cobertura --report-trx --results-directory ./TestResults
48+ - name : Test net10 .0-windows10.0.17763.0
4949 if : ${{ matrix.os == 'windows-latest' }}
50- run : dotnet run --project MSStore.CLI.UnitTests -f net9 .0-windows10.0.17763.0 --no-build -c Release --coverage --coverage-output-format cobertura --report-trx --results-directory ./TestResults
50+ run : dotnet run --project MSStore.CLI.UnitTests -f net10 .0-windows10.0.17763.0 --no-build -c Release --coverage --coverage-output-format cobertura --report-trx --results-directory ./TestResults
5151 - name : Publish test results
5252 if : ${{ !cancelled() }}
53- uses : actions/upload-artifact@v4
53+ uses : actions/upload-artifact@v6
5454 with :
5555 name : test-results-${{ matrix.os }}
5656 path : TestResults/*.trx
5757 - name : Install ReportGenerator
58- run : dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.4.11
58+ run : dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.5.1
5959 - name : Merge code coverage files
6060 run : reportgenerator "-reports:${{ github.workspace }}/**/*.cobertura.xml" "-targetdir:${{ github.workspace }}/report" "-reporttypes:Cobertura" "-filefilters:-*GenerationContext*.g.cs"
6161 - name : Publish code coverage results
62- uses : actions/upload-artifact@v4
62+ uses : actions/upload-artifact@v6
6363 with :
6464 name : Cobertura-${{ matrix.os }}
6565 path : ${{ github.workspace }}/report/Cobertura.xml
6969 run : dotnet pack MSStore.API --no-build -c Release
7070 - name : Upload Artifact - NuGet
7171 if : ${{ matrix.os == 'ubuntu-latest' }}
72- uses : actions/upload-artifact@v4
72+ uses : actions/upload-artifact@v6
7373 with :
7474 name : NuGet
7575 path : MSStore.API/bin/Release/*.nupkg
@@ -84,25 +84,25 @@ jobs:
8484 include :
8585 - os : windows-latest
8686 dotnet-os : win
87- dotnet-framework : net9 .0-windows10.0.17763.0
87+ dotnet-framework : net10 .0-windows10.0.17763.0
8888 - os : ubuntu-latest
8989 dotnet-os : linux
90- dotnet-framework : net9 .0
90+ dotnet-framework : net10 .0
9191 - os : macos-latest
9292 dotnet-os : osx
93- dotnet-framework : net9 .0
93+ dotnet-framework : net10 .0
9494 runs-on : ${{ matrix.os }}
9595
9696 name : Build CLI - ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
9797
9898 steps :
99- - uses : actions/checkout@v4
99+ - uses : actions/checkout@v6
100100 with :
101101 fetch-depth : 0
102102 - name : Setup .NET
103- uses : actions/setup-dotnet@v4
103+ uses : actions/setup-dotnet@v5
104104 with :
105- dotnet-version : 9 .0.x
105+ dotnet-version : 10 .0.x
106106 - name : Add msbuild to PATH
107107 if : ${{ matrix.os == 'windows-latest' }}
108108 uses : microsoft/setup-msbuild@v2
@@ -111,11 +111,11 @@ jobs:
111111 - name : Set Version
112112 run : ./nbgv cloud
113113 - name : Restore CLI
114- run : dotnet restore MSStore.CLI -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} /p:Configuration=Release /p:PublishReadyToRun=true
114+ run : dotnet restore MSStore.CLI -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} /p:Configuration=Release
115115 - name : Build CLI
116- run : dotnet build MSStore.CLI --no-restore --no- self-contained -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} -f ${{ matrix.dotnet-framework }} /p:Configuration=Release
116+ run : dotnet build MSStore.CLI --no-restore --self-contained -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} -f ${{ matrix.dotnet-framework }} /p:Configuration=Release
117117 - name : Publish SelfContained CLI
118- run : dotnet publish MSStore.CLI --no-build --no- self-contained -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} -f ${{ matrix.dotnet-framework }} /p:Configuration=Release /p:PublishProfile=${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
118+ run : dotnet publish MSStore.CLI --no-build --self-contained -r ${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} -f ${{ matrix.dotnet-framework }} /p:Configuration=Release /p:PublishProfile=${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
119119 - run : |
120120 New-Item -ItemType File -Path ".\MSStore.CLI.MSIX\obj\${{ matrix.dotnet-arch }}\appxmanifest.xml" -Force
121121 Copy-Item ".\MSStore.CLI.MSIX\Package.appxmanifest" -Destination ".\MSStore.CLI.MSIX\obj\${{ matrix.dotnet-arch }}\appxmanifest.xml" -Force
@@ -135,13 +135,13 @@ jobs:
135135 run : ."C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SignTool.exe" sign /fd SHA256 /a /f .\MSStore.CLI.MSIX\MSStore.CLI.MSIX_TemporaryKey.pfx ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix
136136 - name : Upload Artifact - CLI
137137 if : ${{ !env.ACT }}
138- uses : actions/upload-artifact@v4
138+ uses : actions/upload-artifact@v6
139139 with :
140140 name : CLI-${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}
141141 path : ${{ github.workspace }}/MSStore.CLI/bin/Release/${{ matrix.dotnet-framework }}/${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}/publish/**/*
142142 - name : Upload Artifact - MSIX
143143 if : ${{ matrix.os == 'windows-latest' && !env.ACT }}
144- uses : actions/upload-artifact@v4
144+ uses : actions/upload-artifact@v6
145145 with :
146146 name : CLI-MSIX-${{ matrix.dotnet-arch }}
147147 path : ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix
0 commit comments