Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 3640896

Browse files
fix(workflows): disable Run.Exit to preserve workflow failure output
Pester 5 Run.Exit terminates the process on failure, preventing GITHUB_OUTPUT from being written. Override Run.Exit to false so the Check results step correctly detects test failures. 🤖 - Generated by Copilot
1 parent f4f1994 commit 3640896

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/pester-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
131131
try {
132132
$config = & scripts/tests/pester.config.ps1 -CI @configParams
133+
$config.Run.Exit = $false
133134
$result = Invoke-Pester -Configuration $config
134135
135136
if ($result.FailedCount -gt 0) {

0 commit comments

Comments
 (0)