Skip to content

Commit a1ef7dc

Browse files
committed
Ensure playwright dependencies are installed
1 parent bdcf9fc commit a1ef7dc

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v3
2020

21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20'
25+
2126
# Step 2: Set up JDK 17 (adjust if you're using a different version)
2227
- name: Set up JDK 17
2328
uses: actions/setup-java@v3
@@ -47,34 +52,8 @@ jobs:
4752
restore-keys: |
4853
${{ runner.os }}-maven
4954
50-
# Step 6: Install system dependencies for Playwright
5155
- name: Install Playwright dependencies
52-
run: |
53-
sudo apt-get update
54-
sudo apt-get install -y \
55-
libwoff1 \
56-
libopus0 \
57-
libwebp6 \
58-
libwebpdemux2 \
59-
libenchant1c2a \
60-
libgudev-1.0-0 \
61-
libsecret-1-0 \
62-
libhyphen0 \
63-
libgdk-pixbuf2.0-0 \
64-
libegl1 \
65-
libgles2 \
66-
libevent-2.1-7 \
67-
libnotify4 \
68-
libxslt1.1 \
69-
libxcomposite1 \
70-
libatk1.0-0 \
71-
libcups2 \
72-
libxrandr2 \
73-
libdbus-1-3 \
74-
libxtst6 \
75-
libnss3 \
76-
libasound2 \
77-
libxshmfence1
56+
run: npx playwright install-deps
7857

7958
# Step 6: Run Maven to execute Playwright tests
8059
- name: Run Playwright Tests

0 commit comments

Comments
 (0)