Refactor Pester installation step in workflow

pull/97/head
Haritha 1 month ago committed by GitHub
parent 6c48f687bd
commit 816a9a3331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -160,9 +160,13 @@ jobs:
Write-Host "to determine if ${{ inputs.tool-name }} version was consumed from cache or if it was downloaded" Write-Host "to determine if ${{ inputs.tool-name }} version was consumed from cache or if it was downloaded"
for ($i = 0; $i -lt 200; $i++) { Get-Random } for ($i = 0; $i -lt 200; $i++) { Get-Random }
- name: Install Pester - name: Ensure Pester Installed
run: Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck run: |
$module = Get-Module -ListAvailable -Name Pester
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
}
- name: Run tests - name: Run tests
if: env.excludewinarm == 'true' if: env.excludewinarm == 'true'
env: env:

Loading…
Cancel
Save