From 769ec2a48de28c0adab03590d595ec1b28303669 Mon Sep 17 00:00:00 2001 From: WC <677680+welps@users.noreply.github.com> Date: Tue, 25 Jul 2023 17:15:11 -0400 Subject: [PATCH] feat: Use a chrome binary that won't auto-upgrade itself (#802) --- .github/actions/testSetup/action.yml | 5 ++--- .github/workflows/build.yml | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/actions/testSetup/action.yml b/.github/actions/testSetup/action.yml index e675f9cf67..3a56663c5c 100644 --- a/.github/actions/testSetup/action.yml +++ b/.github/actions/testSetup/action.yml @@ -29,9 +29,8 @@ runs: # start xvfb in the background sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & - name: Install chrome - uses: browser-actions/setup-chrome@latest - with: - chrome-version: 'stable' + shell: 'bash' + run: npx @puppeteer/browsers install chrome@stable - name: Install Anvil uses: foundry-rs/foundry-toolchain@v1 with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a16816d700..f407b6cbd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -83,7 +83,7 @@ jobs: run: | export BROWSER=chrome export OS=linux - export CHROMIUM_BIN=$(which chrome) + export CHROMIUM_BIN=$(find chrome -type f -name 'chrome') yarn vitest:parallel --retry=5 chrome-e2e-swap: runs-on: beefy-runner-bx @@ -105,7 +105,7 @@ jobs: command: | export BROWSER=chrome export OS=linux - export CHROMIUM_BIN=$(which chrome) + export CHROMIUM_BIN=$(find chrome -type f -name 'chrome') yarn vitest:swap chrome-e2e-send: runs-on: beefy-runner-bx @@ -123,7 +123,7 @@ jobs: run: | export BROWSER=chrome export OS=linux - export CHROMIUM_BIN=$(which chrome) + export CHROMIUM_BIN=$(find chrome -type f -name 'chrome') yarn vitest:send --retry=5 chrome-e2e-dappInteractions: runs-on: beefy-runner-bx @@ -141,7 +141,7 @@ jobs: run: | export BROWSER=chrome export OS=linux - export CHROMIUM_BIN=$(which chrome) + export CHROMIUM_BIN=$(find chrome -type f -name 'chrome') yarn vitest:dappInteractions --retry=5 # BRAVE TESTS # brave-e2e: