Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/build-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
if: steps.filter.outputs.pwshmodule == 'true'
shell: pwsh
run: |
# Pester 5.7.1+ is required for the coverage configuration used in pester.ps1.
# Pester 6.0.0-rc4 is installed explicitly because prereleases are not selected by -MinimumVersion.
# Installed on every leg so behavior stays consistent across the matrix.
Install-Module Pester -MinimumVersion 5.7.1 -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module Pester -RequiredVersion 6.0.0-rc4 -AllowPrerelease -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module PSFramework -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module PSModuleDevelopment -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module Microsoft.Graph.Authentication -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-tag-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Set up PowerShell modules
run: |
pwsh -NoLogo -NoProfile -Command "Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck"
pwsh -NoLogo -NoProfile -Command "Install-Module Pester -RequiredVersion 6.0.0-rc4 -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck"

- name: Generate tags document
run: pwsh -NoLogo -NoProfile -File build/Update-TagsDocumentation.ps1
Expand Down
2 changes: 1 addition & 1 deletion build/Test-PSModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Import-Module "$PSScriptRoot\CommonFunctions.psm1" -Force -WarningAction Silentl
## Restore Module Dependencies
&$PSScriptRoot\Restore-PSModuleDependencies.ps1 -ModuleManifestPath $ModuleManifestPath -PSModuleCacheDirectory $PSModuleCacheDirectoryInfo.FullName | Out-Null

Import-Module Pester -MinimumVersion 5.0.0
Import-Module Pester -RequiredVersion 6.0.0
#$PSModule = Import-Module $ModulePath -PassThru -Force

$PesterConfiguration = New-PesterConfiguration (Import-PowerShellDataFile $PesterConfigurationFileInfo.FullName)
Expand Down
4 changes: 2 additions & 2 deletions build/Update-CommandReference.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

if (-not (Get-Module Alt3.Docusaurus.Powershell -ListAvailable)) { Install-Module Alt3.Docusaurus.Powershell -Scope CurrentUser -Force -SkipPublisherCheck }
if (-not (Get-Module PlatyPS -ListAvailable)) { Install-Module PlatyPS -Scope CurrentUser -Force -SkipPublisherCheck }
if (-not (Get-Module Pester -ListAvailable)) { Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck }
if (-not (Get-Module Pester -ListAvailable | Where-Object { $_.Version -eq '6.0.0' })) { Install-Module Pester -RequiredVersion 6.0.0-rc4 -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck }

Import-Module Alt3.Docusaurus.Powershell
Import-Module PlatyPS
Import-Module Pester
Import-Module Pester -RequiredVersion 6.0.0
Import-Module DnsClient

# Generate the command reference markdown
Expand Down
2 changes: 1 addition & 1 deletion powershell/tests/pester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Remove-Module Maester -ErrorAction Ignore
Import-Module "$PSScriptRoot\..\Maester.psd1"

Import-Module PSModuleDevelopment
Import-Module Pester
Import-Module Pester -RequiredVersion 6.0.0

Write-PSFMessage -Level Important -Message "Creating test result folder"
$null = New-Item -Path "$PSScriptRoot\..\.." -Name TestResults -ItemType Directory -Force
Expand Down