Skip to content

Commit 46b08ec

Browse files
authored
fix: restore Playwright browser install in CI
1 parent 55dc728 commit 46b08ec

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,13 @@ jobs:
3131
- name: Build
3232
run: dotnet build --configuration Release --no-restore
3333

34-
- name: Resolve Current .NET Version
34+
- name: Install Playwright browsers
3535
shell: pwsh
3636
run: |
37-
$dotNetVersion = dotnet --version
38-
"DOTNET_VERSION=$dotNetVersion" >> $env:GITHUB_ENV
37+
$playwrightScript = Get-ChildItem "test/OrchardCoreContrib.Testing.UI.Tests/bin/Release/*/playwright.ps1" |
38+
Select-Object -First 1 -ExpandProperty FullName
3939
40-
- name: Install Playwright.NET
41-
uses: phil-scott-78/setup-playwright-dotnet@v0.1.0-alpha
42-
with:
43-
dotnet-version: ${{ env.DOTNET_VERSION }}
44-
with-deps: true
45-
browsers: 'all'
40+
& $playwrightScript install
4641
4742
- name: Test
4843
run: dotnet test --configuration Release --no-restore --verbosity normal

0 commit comments

Comments
 (0)