Skip to content

Commit 4c23212

Browse files
committed
Simplify the script
1 parent 382fd2f commit 4c23212

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,8 @@ jobs:
3131
- name: Build
3232
run: dotnet build --configuration Release --no-restore
3333

34-
- name: Install Playwright browsers
35-
shell: pwsh
36-
run: |
37-
$playwrightScript = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
38-
Select-Object -First 1 -ExpandProperty FullName
39-
40-
if ([string]::IsNullOrWhiteSpace($playwrightScript)) {
41-
throw "Unable to find playwright.ps1 in the built UI test output."
42-
}
43-
44-
& $playwrightScript install
34+
- name: Install Playwright.NET Browsers & Dependencies
35+
run: pwsh test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1 install --with-deps
4536

4637
- name: Test
4738
run: dotnet test --configuration Release --no-restore --verbosity normal

0 commit comments

Comments
 (0)