Skip to content

Commit 489e304

Browse files
kauanAfonsoKauanAfonso
authored andcommitted
ci: add Chrome installation for Puppeteer on Linux
Signed-off-by: kauanAfonso <kauan.afonso@ibm.com>
1 parent b578daf commit 489e304

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,9 @@ jobs:
4444
env:
4545
PYTHON: ${{env.pythonLocation}}/bin/python3
4646
run: npm ci
47-
- name: Install Chrome (Linux)
47+
- name: Install Chrome for Puppeteer (Linux only)
4848
if: runner.os == 'Linux'
49-
run: |
50-
sudo apt-get update
51-
sudo apt-get install -y google-chrome-stable
52-
- name: Install Chrome (macOS)
53-
if: runner.os == 'macOS'
54-
run: |
55-
brew install --cask google-chrome
56-
- name: Install Chrome (Windows)
57-
if: runner.os == 'Windows'
58-
run: |
59-
choco install googlechrome --ignore-checksums -y
60-
- name: Set Chrome path (Linux)
61-
if: runner.os == 'Linux'
62-
run: echo "PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome" >> $GITHUB_ENV
63-
- name: Set Chrome path (macOS)
64-
if: runner.os == 'macOS'
65-
run: echo "PUPPETEER_EXECUTABLE_PATH=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" >> $GITHUB_ENV
66-
- name: Set Chrome path (Windows)
67-
if: runner.os == 'Windows'
68-
run: echo "PUPPETEER_EXECUTABLE_PATH=C:/Program Files/Google/Chrome/Application/chrome.exe" >> $env:GITHUB_ENV
49+
run: npx puppeteer browsers install chrome
6950
- name: Build
7051
run: node packages/build/bin/compile-package -b
7152
- name: Run package tests

0 commit comments

Comments
 (0)