Skip to content

Commit 382fd2f

Browse files
authored
fix: guard Playwright script lookup
1 parent 46b08ec commit 382fd2f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
$playwrightScript = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
3838
Select-Object -First 1 -ExpandProperty FullName
3939
40+
if ([string]::IsNullOrWhiteSpace($playwrightScript)) {
41+
throw "Unable to find playwright.ps1 in the built UI test output."
42+
}
43+
4044
& $playwrightScript install
4145
4246
- name: Test

0 commit comments

Comments
 (0)