mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Add conditional check for Pester installation
This commit is contained in:
1
.github/workflows/build-tool-packages.yml
vendored
1
.github/workflows/build-tool-packages.yml
vendored
@@ -161,6 +161,7 @@ jobs:
|
||||
for ($i = 0; $i -lt 200; $i++) { Get-Random }
|
||||
|
||||
- name: Ensure Pester Installed
|
||||
if: env.excludewinarm == 'true'
|
||||
run: |
|
||||
$module = Get-Module -ListAvailable -Name Pester
|
||||
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
|
||||
|
||||
Reference in New Issue
Block a user