diff --git a/actions_bootstrap.ps1 b/actions_bootstrap.ps1 index ab0f6e0..d4a4966 100644 --- a/actions_bootstrap.ps1 +++ b/actions_bootstrap.ps1 @@ -46,7 +46,7 @@ foreach ($module in $modulesToInstall) { ErrorAction = 'Stop' } try { - if ($module.ModuleName -eq 'Pester' -and $IsWindows) { + if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -ge [version]'5.1')) { # special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389 # this only affects windows builds Install-Module @installSplat -SkipPublisherCheck