Skip to content

Commit 54cc253

Browse files
committed
ci: let puppeteer handle chrome installation
1 parent 66fb4c4 commit 54cc253

2 files changed

Lines changed: 1 addition & 28 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,6 @@ jobs:
1212
node-version: 22
1313
cache: npm
1414

15-
- name: Install Puppeteer dependencies
16-
run: |
17-
sudo apt-get update
18-
sudo apt install -y --no-install-recommends \
19-
libnss3 \
20-
libdbus-1-3 \
21-
libatk1.0-0 \
22-
libasound2t64 \
23-
libxrandr2 \
24-
libxkbcommon-dev \
25-
libxfixes3 \
26-
libxcomposite1 \
27-
libxdamage1 \
28-
libgbm-dev \
29-
libatk-bridge2.0-0 \
30-
binutils \
31-
libglib2.0-0 \
32-
libgdk-pixbuf2.0-0 \
33-
libgtk-3-0 \
34-
libnss3-dev \
35-
libxss-dev \
36-
xvfb \
37-
fonts-liberation \
38-
libu2f-udev \
39-
xdg-utils \
40-
chromium-browser
41-
4215
- name: Install dependencies
4316
run: npm ci
4417

jest-puppeteer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
headless: isDebugMode ? false : true,
77
slowMo: 10,
88
defaultViewport: null,
9-
executablePath: process.env.CHROME_PATH,
9+
...(process.env.CHROME_PATH ? { executablePath: process.env.CHROME_PATH } : {}),
1010
args: ["--no-sandbox", "--disable-setuid-sandbox"],
1111
},
1212
server: [

0 commit comments

Comments
 (0)