From ae37057c17ca6bca09cd910c78615c18534c20f1 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Wed, 11 Jun 2025 12:48:46 -0400 Subject: [PATCH] chore: use browser tools to install chrome for testing --- .circleci/workflows.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index 203656fcb378..9d20273b0d7c 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -5,7 +5,7 @@ chrome-beta-version: &chrome-beta-version "138.0.7204.15" firefox-stable-version: &firefox-stable-version "137.0" orbs: - browser-tools: circleci/browser-tools@2.1.0 + browser-tools: circleci/browser-tools@2.1.1 defaults: &defaults parallelism: 1 @@ -578,11 +578,6 @@ commands: description: whether or not to install google chrome for testing type: boolean default: false - google-chrome-for-testing-channel: - description: Google Chrome for Testing channel to install - type: string - # can be stable, beta, dev, or canary - default: stable google-chrome-for-testing-version: description: Google Chrome for Testing version to install type: string @@ -635,13 +630,13 @@ commands: equal: [ true, << parameters.install-chrome-for-testing >> ] steps: - run: - name: Install Chrome for Testing and link it to google-chrome + name: Install unzip command: | - INSTALL_OUTPUT=$(npx @puppeteer/browsers install chrome@<> --path /tmp/chrome-for-testing) - DOWNLOAD_DIR=$(echo "$INSTALL_OUTPUT" | grep -o '\/.*\/chrome-linux64') - mv $DOWNLOAD_DIR /opt/chrome-for-testing - ln -fs /opt/chrome-for-testing/chrome /usr/local/bin/chrome - rm -rf /tmp/chrome-for-testing + apt-get update && apt-get install -y unzip + - browser-tools/install_chrome_for_testing: + version: << parameters.google-chrome-for-testing-version >> + install_chromedriver: false + # This code builds better-sqlite3 on Debian 10 (Buster). This is necessary because Debian 10 has the oldest glibc version (2.28) that we support. # # Since this is running Docker remote (because the job running the command may not be using an executor with the appropriate glibc version), we need to