You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/swift_package_test.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,11 @@ on:
97
97
default: ""
98
98
windows_build_command:
99
99
type: string
100
-
description: "Windows Command Prompt command to build and test the package"
101
-
default: "swift test"
100
+
description: |
101
+
Windows Command Prompt command to build and test the package.
102
+
Note that Powershell does not automatically exit if a subcommand fails. The Invoke-Program utility is available to propagate non-zero exit codes.
103
+
It is strongly encouraged to run all command using `Invoke-Program` unless you want to continue on error eg. `Invoke-Program git apply patch.diff` instead of `git apply patch.diff`.
104
+
default: "Invoke-Program swift test"
102
105
macos_env_vars:
103
106
description: "Newline separated list of environment variables"
104
107
type: string
@@ -383,8 +386,6 @@ jobs:
383
386
mkdir $env:TEMP\test-script
384
387
echo @'
385
388
Set-PSDebug -Trace 1
386
-
$ErrorActionPreference = 'Stop'
387
-
388
389
if ("${{ inputs.enable_windows_docker }}" -eq "true") {
0 commit comments