Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd6e1b3

Browse files
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‎

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)

AltStyle によって変換されたページ (->オリジナル) /