Skip to content

Commit 0ccd622

Browse files
committed
Updated install chrome and dependencies scripts
1 parent 9427848 commit 0ccd622

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,19 @@ jobs:
270270
steps:
271271
- uses: actions/checkout@v5
272272

273-
- name: Install Chrome + dependencies (including libvips for sharp)
273+
- name: Install Chrome
274274
shell: bash
275275
run: |
276-
apt update
277-
# Required for Chrome
278-
apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb wget
279-
# Required for 'sharp' (used in PDF image comparison)
280-
apt install -y libvips-dev
281-
# Install Chrome
276+
export DEBIAN_FRONTEND=noninteractive
282277
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
283-
apt install -y /tmp/chrome.deb
278+
apt-get install -y /tmp/chrome.deb
279+
280+
- name: Install system dependencies (for Cypress + Sharp)
281+
shell: bash
282+
run: |
283+
export DEBIAN_FRONTEND=noninteractive
284+
apt-get update -y
285+
apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb wget libvips-dev
284286
285287
- name: Copy code
286288
shell: bash

0 commit comments

Comments
 (0)