Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vsts-ci/misc-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
condition: succeededOrFailed()

- powershell: |
Install-module pester -Scope CurrentUser -Force
Install-module Pester -Scope CurrentUser -Force -MaximumVersion 4.99
displayName: Install Pester
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/nanoserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
continueOnError: true

- pwsh: |
Install-module pester -Scope CurrentUser -Force
Install-module Pester -Scope CurrentUser -Force -MaximumVersion 4.99
displayName: 'Install Pester'
continueOnError: true

Expand Down
2 changes: 1 addition & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ function Restore-PSPester
[ValidateNotNullOrEmpty()]
[string] $Destination = ([IO.Path]::Combine((Split-Path (Get-PSOptions -DefaultToNew).Output), "Modules"))
)
Save-Module -Name Pester -Path $Destination -Repository PSGallery -RequiredVersion "4.8.0"
Save-Module -Name Pester -Path $Destination -Repository PSGallery -MaximumVersion 4.99
}

function Compress-TestContent {
Expand Down
5 changes: 3 additions & 2 deletions tools/ci.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ function Invoke-CIFinish
$env:PSMsiX64Path = $artifacts | Where-Object { $_.EndsWith(".msi")}

# Install the latest Pester and import it
Install-Module Pester -Force -SkipPublisherCheck
Import-Module Pester -Force
$maximumPesterVersion = '4.99'
Install-Module Pester -Force -SkipPublisherCheck -MaximumVersion $maximumPesterVersion
Import-Module Pester -Force -MaximumVersion $maximumPesterVersion

# start the packaging tests and get the results
$packagingTestResult = Invoke-Pester -Script (Join-Path $repoRoot '.\test\packaging\windows\') -PassThru
Expand Down