File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
.github/workflows/setup-node Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 99 with :
1010 node-version : 20
1111
12- - name : Install system dependencies for Playwright 🖥️
13- shell : bash
14- run : |
15- sudo apt-get update
16- sudo apt-get install -y libasound2t64 libffi8 libx264-dev fonts-liberation libnss3 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcups2 libdbus-1-3 libdrm2 libgbm1 libnspr4 libpango-1.0-0 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 xvfb
17-
1812 - name : Cache dependencies ⚡
1913 id : cache_dependencies
2014 uses : actions/cache@v3
2519 - name : Install dependencies 🔧
2620 shell : bash
2721 if : steps.cache_dependencies.outputs.cache-hit != 'true'
28- run : npm install
22+ run : npm install
23+
24+ - name : Install Playwright and browsers
25+ shell : bash
26+ run : |
27+ # Update package lists with official repositories
28+ sudo apt-get update
29+
30+ # Install system dependencies first
31+ sudo apt-get install -y wget xvfb
32+
33+ # Install Playwright browsers with the recommended GitHub Actions approach
34+ # This will automatically install the correct dependencies for the browsers
35+ npx playwright install --with-deps chromium firefox webkit
You can’t perform that action at this time.
0 commit comments