Add conditional check for Pester installation

pull/97/head
Haritha 1 month ago committed by GitHub
parent 673d91c21a
commit e7aee39f18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -161,6 +161,7 @@ jobs:
for ($i = 0; $i -lt 200; $i++) { Get-Random } for ($i = 0; $i -lt 200; $i++) { Get-Random }
- name: Ensure Pester Installed - name: Ensure Pester Installed
if: env.excludewinarm == 'true'
run: | run: |
$module = Get-Module -ListAvailable -Name Pester $module = Get-Module -ListAvailable -Name Pester
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) { if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {

Loading…
Cancel
Save