Skip to content

Commit d51450a

Browse files
committed
Upgrade Pester to version 6.0.1 in CI workflow and documentation
1 parent 4b0117c commit d51450a

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Test Windows PowerShell
4747
if: matrix.os == 'windows-latest'
4848
run: |
49-
Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck
49+
Install-Module Pester -RequiredVersion 6.0.1 -Scope CurrentUser -Force -SkipPublisherCheck
5050
./build.ps1 -Test -Verbose
5151
shell: powershell
5252

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To install **PSScriptAnalyzer** from source code:
8080
- If building for Windows PowerShell versions, then the .NET Framework 4.6.2 [targeting pack](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net462) (also referred to as developer/targeting pack) need to be installed. This is only possible on Windows.
8181
- Optional but recommended for development: [Visual Studio 2022](https://www.visualstudio.com/downloads)
8282
- Or [Visual Studio Code](https://code.visualstudio.com/download)
83-
- [Pester v5 PowerShell module, available on PowerShell Gallery](https://github.com/pester/Pester)
83+
- [Pester v6 PowerShell module, available on PowerShell Gallery](https://github.com/pester/Pester)
8484
- [PlatyPS PowerShell module, available on PowerShell Gallery](https://github.com/PowerShell/platyPS/releases)
8585

8686
### Steps
@@ -154,7 +154,7 @@ built-in rules.
154154

155155
Pester-based ScriptAnalyzer Tests are located in `path/to/PSScriptAnalyzer/Tests` folder.
156156

157-
- Ensure [Pester](https://www.powershellgallery.com/packages/Pester) of at least version 5.3 is installed
157+
- Ensure [Pester](https://www.powershellgallery.com/packages/Pester) of at least version 6.0 is installed
158158
- In the root folder of your local repository, run:
159159

160160
```powershell

Tests/Rules/UseIdenticalMandatoryParametersForDSC.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Describe "UseIdenticalMandatoryParametersForDSC" {
3232
}
3333

3434
# todo add a test to check one violation per function
35-
It "Should find a violations" -pending {
35+
It "Should find a violations" -Skip {
3636
$violations.Count | Should -Be 0
3737
}
3838
}

Tests/Rules/UseToExportFieldsInManifest.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Describe "UseManifestExportFields" {
8787
$results[0].Extent.Text | Should -Be "'*'"
8888
}
8989

90-
It "suggests corrections for AliasesToExport with wildcard" -pending:($IsCoreClr) {
90+
It "suggests corrections for AliasesToExport with wildcard" -Skip:($IsCoreClr) {
9191
$violations = Run-PSScriptAnalyzerRule $testManifestBadAliasesWildcardPath
9292
$violationFilepath = Join-path $testManifestPath $testManifestBadAliasesWildcardPath
9393
Test-CorrectionExtent $violationFilepath $violations[0] 1 "'*'" "@('gbar', 'gfoo')"

tools/installPSResources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Install-PSResource -Verbose -TrustRepository -RequiredResource @{
1818
repository = $PSRepository
1919
}
2020
Pester = @{
21-
version = "5.7.1"
21+
version = "6.0.1"
2222
repository = $PSRepository
2323
}
2424
}

0 commit comments

Comments
 (0)