Skip to content

Commit 3dfc29b

Browse files
committed
Fix e2e test
1 parent ee5b7d1 commit 3dfc29b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/windos-fix.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
operating-system: [windows-2019, windows-2020]
20+
operating-system: [windows-2019, windows-2022]
2121
dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0', '6.0', '7.0', '8.0']
2222
steps:
2323
- name: Checkout
@@ -37,10 +37,12 @@ jobs:
3737

3838
- name: Verify the action took less than 1 minute
3939
run: |
40-
$timestamp = Get-Content -Path "timestamp.txt"
40+
$timestampContent = Get-Content -Path "timestamp.txt"
41+
$timestamp = [DateTime]::Parse($timestampContent)
4142
$now = Get-Date
42-
$diff = $now - $timestamp
43-
if ($diff.TotalMinutes -gt 1) {
43+
44+
$diff = New-TimeSpan -Start $timestamp -End $now
45+
if ($diff.Minutes -gt 1) {
4446
throw "The action took longer than 1 minute to run"
4547
}
4648

0 commit comments

Comments
 (0)