Skip to content

Commit d5a03c8

Browse files
committed
manually install os deps???
1 parent 37dc01c commit d5a03c8

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ jobs:
200200
- name: Install OS Dependencies for Playwright
201201
run: |
202202
sudo apt-get update
203+
# Install core dependencies for Playwright on Ubuntu 24.04
203204
sudo apt-get install -y \
204205
libasound2t64 \
205206
libasound2-dev \
@@ -221,8 +222,21 @@ jobs:
221222
libmanette-0.2-0 \
222223
libflite1 \
223224
libxss1 \
224-
xvfb
225-
225+
xvfb \
226+
fonts-liberation \
227+
fonts-noto-color-emoji \
228+
fonts-noto-cjk \
229+
libnss3 \
230+
libdrm2 \
231+
libxcomposite1 \
232+
libxdamage1 \
233+
libxrandr2 \
234+
libgbm1 \
235+
libxkbcommon0 \
236+
libpango-1.0-0 \
237+
libcairo-gobject2 \
238+
libdbus-1-3 \
239+
libasound2-plugins
226240
227241
- name: Install dependencies
228242
if: steps.cache_dependencies.outputs.cache-hit != 'true'
@@ -600,12 +614,9 @@ jobs:
600614
key: ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}}
601615
- name: Install Playwright browser if not cached
602616
if: steps.playwright-cache.outputs.cache-hit != 'true' && matrix.node >= 14
603-
run: npx playwright install --with-deps
617+
run: npx playwright install
604618
env:
605619
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}
606-
- name: Install OS dependencies of Playwright if cache hit
607-
if: steps.playwright-cache.outputs.cache-hit == 'true' && matrix.node >= 14
608-
run: npx playwright install-deps
609620
- name: Run tests
610621
env:
611622
NODE_VERSION: ${{ matrix.node }}
@@ -694,12 +705,9 @@ jobs:
694705
key: ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}}
695706
- name: Install Playwright browser if not cached
696707
if: steps.playwright-cache.outputs.cache-hit != 'true'
697-
run: npx playwright install --with-deps
708+
run: npx playwright install
698709
env:
699710
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}
700-
- name: Install OS dependencies of Playwright if cache hit
701-
if: steps.playwright-cache.outputs.cache-hit == 'true'
702-
run: npx playwright install-deps
703711
- name: Run Playwright tests
704712
env:
705713
PW_BUNDLE: ${{ matrix.bundle }}
@@ -750,12 +758,9 @@ jobs:
750758
key: ${{ runner.os }}-Playwright-${{steps.playwright-version.outputs.version}}
751759
- name: Install Playwright browser if not cached
752760
if: steps.playwright-cache.outputs.cache-hit != 'true'
753-
run: npx playwright install --with-deps
761+
run: npx playwright install
754762
env:
755763
PLAYWRIGHT_BROWSERS_PATH: ${{steps.npm-cache-dir.outputs.dir}}
756-
- name: Install OS dependencies of Playwright if cache hit
757-
if: steps.playwright-cache.outputs.cache-hit == 'true'
758-
run: npx playwright install-deps
759764
- name: Run Playwright Loader tests
760765
env:
761766
PW_BUNDLE: ${{ matrix.bundle }}

0 commit comments

Comments
 (0)