chore(ci): work around powershell install failure
happens on northcentralus region (sometimes) ...
This commit is contained in:
@@ -150,7 +150,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
$PSVersionTable
|
$PSVersionTable
|
||||||
Get-PSRepository | Format-List *
|
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
|
Install-Module -Name Pester -RequiredVersion 5.7.1 -Confirm:$false -Force -SkipPublisherCheck
|
||||||
$Error.clear()
|
$Error.clear()
|
||||||
Invoke-Pester -Path "tests" -CI
|
Invoke-Pester -Path "tests" -CI
|
||||||
|
|||||||
Reference in New Issue
Block a user