Skip to content

Commit 54a34ce

Browse files
🩹 [Patch]: Add check to ensure step summary is empty after Action-Test execution
1 parent b693138 commit 54a34ce

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@ jobs:
4646
with:
4747
Name: PSModuleTest
4848
WorkingDirectory: tests/srcTestRepo
49-
ShowSummaryOnSuccess: true
49+
50+
- name: Check step summary is empty
51+
shell: pwsh
52+
run: |
53+
$summary = Get-Content $env:GITHUB_STEP_SUMMARY -Raw
54+
if ($summary.Trim() -ne '') {
55+
throw "Step summary is not empty: $summary"
56+
}
57+
Write-Host "Step summary is empty as expected."
5058
5159
- name: Lint documentation
5260
uses: super-linter/super-linter/[email protected]

0 commit comments

Comments
 (0)