From d67b54bcb5238a9c33b2ef55cca27b2c77370507 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 18 May 2026 06:34:06 +0200 Subject: [PATCH] chore(ci): work around powershell install failure happens on northcentralus region (sometimes) ... --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bb925792..0d6094298 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,7 +150,10 @@ jobs: run: | $PSVersionTable Get-PSRepository | Format-List * - Set-PSRepository psgallery -InstallationPolicy trusted + if (-not (Get-PSRepository -Name PSGallery -ErrorAction SilentlyContinue)) { + Register-PSRepository -Default + } + Set-PSRepository PSGallery -InstallationPolicy Trusted Install-Module -Name Pester -RequiredVersion 5.7.1 -Confirm:$false -Force -SkipPublisherCheck $Error.clear() Invoke-Pester -Path "tests" -CI