Skip to content

Commit

Permalink
test: force PowerShell 7.3 behavior in gh-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikJaniec committed Mar 3, 2023
1 parent 70e44dc commit a9447e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pwsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
run: |
Import-Module Pester -PassThru
$ErrorActionPreference = 'Continue'
"Currently, PSNativeCommandArgumentPassing: '$PSNativeCommandArgumentPassing'"
"Forcing PowerShell 7.3 behavior with value: 'Standard'..."
$PSNativeCommandArgumentPassing = 'Standard'
$res = Invoke-Pester -Path test -Output Detailed -PassThru -ErrorAction SilentlyContinue
if (!$res -or ($res.FailedCount -gt 0)) {
$Error | Format-List * -Force
Expand Down

0 comments on commit a9447e1

Please sign in to comment.