Skip to content

Commit dd6e1b3

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 b67bc9c commit dd6e1b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
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)