From 5bd65030a944599035648184094457eb67d05de1 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Mon, 2 Jun 2025 14:01:49 -0400 Subject: [PATCH] chore: use orb to install chrome for testing --- .circleci/workflows.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index aad4c1485403..b2af8ac2d95b 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -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,12 @@ commands: equal: [ true, << parameters.install-chrome-for-testing >> ] steps: - run: - name: Install Chrome for Testing and link it to google-chrome + name: install and 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 wget unzip + - browser-tools/install_chrome_for_testing: + version: << parameters.google-chrome-for-testing-version >> # 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