3636 AUTOMATED_TESTS_PROJECT_DIR : ' ${{ github.workspace }}\tests\Files.InteractionTests'
3737 AUTOMATED_TESTS_PROJECT_PATH : ' ${{ github.workspace }}\tests\Files.InteractionTests\Files.InteractionTests.csproj'
3838 AUTOMATED_TESTS_ASSEMBLY_DIR : ' ${{ github.workspace }}\artifacts\TestsAssembly'
39- ARTIFACTS_STAGING_DIR : ' ${{ github.workspace }}\artifacts'
39+ ARTIFACTS_STAGING_DIR : ' ${{ github.workspace }}\artifacts'
4040 APPX_PACKAGE_DIR : ' ${{ github.workspace }}\artifacts\AppxPackages\'
4141 APPX_SELFSIGNED_CERT_PATH : ' ${{ github.workspace }}\.github\workflows\FilesApp_SelfSigned.pfx'
4242 WINAPPDRIVER_EXE86_PATH : ' C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe'
4343 WINAPPDRIVER_EXE64_PATH : ' C:\Program Files\Windows Application Driver\WinAppDriver.exe'
4444
4545jobs :
46-
4746 check-formatting :
48-
4947 if : github.repository_owner == 'files-community'
5048
5149 runs-on : windows-2025-vs2026
5250
5351 steps :
54-
5552 - name : Checkout the repository
56- uses : actions/checkout@v4
53+ uses : actions/checkout@v6
5754 with :
5855 fetch-depth : 2
5956 - name : Setup .NET
60- uses : actions/setup-dotnet@v4
57+ uses : actions/setup-dotnet@v5
6158
6259 - name : Install XamlStyler.Console
6360 run : ' dotnet tool install --global XamlStyler.Console'
@@ -75,13 +72,12 @@ jobs:
7572 }
7673 }
7774 continue-on-error : true
78-
75+
7976 - name : Fail if necessary
8077 if : steps.check-step.outcome == 'failure'
8178 run : exit 1
8279
8380 build :
84-
8581 if : github.repository_owner == 'files-community'
8682
8783 runs-on : windows-2025-vs2026
@@ -95,15 +91,14 @@ jobs:
9591 ARCHITECTURE : ${{ matrix.platform }}
9692
9793 steps :
98-
9994 - name : Checkout the repository
100- uses : actions/checkout@v4
95+ uses : actions/checkout@v6
10196 - name : Setup MSBuild
102- uses : microsoft/setup-msbuild@v2
97+ uses : microsoft/setup-msbuild@v3
10398 - name : Setup NuGet
104- uses : NuGet/setup-nuget@v2
99+ uses : NuGet/setup-nuget@v3
105100 - name : Setup .NET
106- uses : actions/setup-dotnet@v4
101+ uses : actions/setup-dotnet@v5
107102 with :
108103 global-json-file : global.json
109104
@@ -117,7 +112,7 @@ jobs:
117112 -p:PublishReadyToRun=true `
118113 -v:quiet
119114
120- - if : env.CONFIGURATION != env.AUTOMATED_TESTS_CONFIGURATION || env.ARCHITECTURE != env.AUTOMATED_TESTS_ARCHITECTURE
115+ - if : env.CONFIGURATION != env.AUTOMATED_TESTS_CONFIGURATION || env.ARCHITECTURE != env.AUTOMATED_TESTS_ARCHITECTURE
121116 name : Build Files
122117 run : |
123118 msbuild `
@@ -173,13 +168,12 @@ jobs:
173168
174169 - if : env.ARCHITECTURE == env.AUTOMATED_TESTS_ARCHITECTURE && env.CONFIGURATION == env.AUTOMATED_TESTS_CONFIGURATION
175170 name : Upload the packages to the Artifacts
176- uses : actions/upload-artifact@v4
171+ uses : actions/upload-artifact@v7
177172 with :
178173 name : ' Appx Packages (${{ env.CONFIGURATION }}, ${{ env.ARCHITECTURE }})'
179174 path : ${{ env.ARTIFACTS_STAGING_DIR }}
180175
181176 test :
182-
183177 if : github.repository_owner == 'files-community' && always()
184178
185179 needs : [build]
@@ -196,20 +190,19 @@ jobs:
196190 pull-requests : write
197191
198192 steps :
199-
200193 - if : contains(join(needs.*.result, ','), 'failure')
201194 name : Fail if necessary
202195 run : exit 1
203196
204197 - name : Checkout the repository
205- uses : actions/checkout@v4
198+ uses : actions/checkout@v6
206199 - name : Setup .NET
207- uses : actions/setup-dotnet@v4
200+ uses : actions/setup-dotnet@v5
208201 with :
209202 global-json-file : global.json
210203
211204 - name : Download the packages from the Artifacts
212- uses : actions/download-artifact@v4
205+ uses : actions/download-artifact@v8
213206 with :
214207 name : ' Appx Packages (${{ env.CONFIGURATION }}, ${{ env.AUTOMATED_TESTS_ARCHITECTURE }})'
215208 path : ${{ env.ARTIFACTS_STAGING_DIR }}
@@ -251,7 +244,7 @@ jobs:
251244
252245 # Retry integration tests if first attempt fails
253246 - name : Run interaction tests
254- uses : nick-fields/retry@v3
247+ uses : nick-fields/retry@v4
255248 with :
256249 timeout_minutes : 15
257250 max_attempts : 2
@@ -265,9 +258,9 @@ jobs:
265258 --report-trx-filename testResults.trx
266259
267260 - if : github.event_name == 'pull_request'
268- uses : geekyeggo/delete-artifact@v5
261+ uses : geekyeggo/delete-artifact@v6
269262 with :
270- name : ' *'
263+ name : ' *'
271264
272265 # - name: Generate markdown from the tests result
273266 # shell: pwsh
@@ -284,7 +277,7 @@ jobs:
284277 # Get-Content $env:AUTOMATED_TESTS_ASSEMBLY_DIR\testResults.md
285278
286279 # - name: Publish tests result
287- # uses: marocchino/sticky-pull-request-comment@v2
280+ # uses: marocchino/sticky-pull-request-comment@v3
288281 # with:
289282 # header: test-result
290283 # path: '${{ env.AUTOMATED_TESTS_ASSEMBLY_DIR }}\testResults.md'
0 commit comments