Skip to content

Commit dd7fbf7

Browse files
committed
fix testing issue with nunit
1 parent 9e48b35 commit dd7fbf7

File tree

1 file changed

+6
-37
lines changed

1 file changed

+6
-37
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,42 +22,6 @@ jobs:
2222
with:
2323
dotnet-version: '10.0.x'
2424

25-
- name: Install browser dependencies
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y \
29-
libgtk-3-0 \
30-
libgtk-4-1 \
31-
libgbm1 \
32-
libnss3 \
33-
libasound2t64 \
34-
libxss1 \
35-
libxtst6 \
36-
libx11-xcb1 \
37-
libxcomposite1 \
38-
libxdamage1 \
39-
libxrandr2 \
40-
libxinerama1 \
41-
libgl1 \
42-
libdrm2 \
43-
libpango-1.0-0 \
44-
libcairo2 \
45-
libatspi2.0-0 \
46-
libcups2 \
47-
libwoff1 \
48-
libvpx9 \
49-
libevent-2.1-7 \
50-
libopus0 \
51-
libavif16 \
52-
libharfbuzz-icu0 \
53-
libsecret-1-0 \
54-
libhyphen0 \
55-
libmanette-0.2-0 \
56-
libgles2 \
57-
libx264-164 \
58-
libgstreamer-plugins-bad1.0-0 \
59-
libflite1
60-
6125
- name: Restore dependencies
6226
run: dotnet restore
6327

@@ -70,11 +34,16 @@ jobs:
7034
- name: Add .NET tools to PATH
7135
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
7236

37+
# ✅ This is what your runner is missing (e.g. libwayland-server0, etc).
38+
# It installs the correct Linux deps for Playwright browsers on ubuntu-latest.
39+
- name: Install Playwright OS dependencies
40+
run: sudo env "PATH=$PATH" playwright install-deps
41+
7342
- name: Install Playwright Browsers
7443
run: playwright install
7544

7645
- name: Test (NUnit)
7746
run: dotnet test Playwright.NUnit.Testing/Playwright.NUnit.Testing.csproj --configuration Release --no-build
7847

7948
- name: Test (TUnit)
80-
run: dotnet run --configuration Release --project Playwright.TUnit.Testing/Playwright.TUnit.Testing.csproj
49+
run: dotnet run --configuration Release --project Playwright.TUnit.Testing/Playwright.TUnit.Testing.csproj

0 commit comments

Comments
 (0)