Skip to content

Commit 1b41a07

Browse files
committed
Update Windows PowerShell's Pester on CI for tests
It comes with 3.0.4 which is ancient and cannot run our Pester tests.
1 parent 3221b5a commit 1b41a07

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.vsts-ci/templates/ci-general.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ steps:
1414
script: $PSVersionTable
1515
pwsh: ${{ parameters.pwsh }}
1616

17+
- task: PowerShell@2
18+
displayName: Update Pester
19+
inputs:
20+
targetType: inline
21+
script: |
22+
Install-Module -Name Pester -Force -Scope CurrentUser
23+
Get-Module -ListAvailable -Name Pester
24+
pwsh: false
25+
condition: not(${{ parameters.pwsh }})
26+
1727
- checkout: self
1828

1929
# NOTE: We either checkout the Git repo for PowerShellEditorServices, or we

0 commit comments

Comments
 (0)