Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Nov 9, 2023
1 parent ee5b7d1 commit 3dfc29b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/windos-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
operating-system: [windows-2019, windows-2020]
operating-system: [windows-2019, windows-2022]
dotnet-version: ['2.1', '2.2', '3.0', '3.1', '5.0', '6.0', '7.0', '8.0']
steps:
- name: Checkout
Expand All @@ -37,10 +37,12 @@ jobs:

- name: Verify the action took less than 1 minute
run: |
$timestamp = Get-Content -Path "timestamp.txt"
$timestampContent = Get-Content -Path "timestamp.txt"
$timestamp = [DateTime]::Parse($timestampContent)
$now = Get-Date
$diff = $now - $timestamp
if ($diff.TotalMinutes -gt 1) {
$diff = New-TimeSpan -Start $timestamp -End $now
if ($diff.Minutes -gt 1) {
throw "The action took longer than 1 minute to run"
}
Expand Down

0 comments on commit 3dfc29b

Please sign in to comment.