From 4f89ac3ad4b692aaf0b0a9daaba53cab29e51c33 Mon Sep 17 00:00:00 2001 From: Fionna Chan <13184582+fionnachan@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:12:23 +0800 Subject: [PATCH] ci: use Chrome 128 (#1932) --- .github/workflows/e2e-tests.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 00e68cc1d5..658290cc09 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -35,7 +35,33 @@ jobs: fail-fast: false matrix: test: ${{ fromJson(needs.load-e2e-files.outputs.matrix) }} + steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: false + swap-storage: true + + # we found on 26 Sep that using Chrome 129 mysteriously broke ci at setupMetamask step + # with the following error: > Cannot read properties of undefined (reading 'waitForTimeout') + # so we are reverting to Chrome 128 on ci + # https://www.ubuntuupdates.org/package_logs?type=ppas&vals=8 + - name: Set up Chrome 128 + run: | + wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_128.0.6613.137-1_amd64.deb + sudo apt-get install ./google-chrome-stable_128.0.6613.137-1_amd64.deb + - name: Checkout uses: actions/checkout@v4 @@ -73,7 +99,7 @@ jobs: uses: cypress-io/github-action@8d3918616d8ac34caa2b49afc8b408b6a872a6f5 # pin@v6.7.1 with: start: yarn start - command: "yarn test:e2e${{ (matrix.test.type == 'cctp' && ':cctp') || (matrix.test.type == 'orbit' && ':orbit') || '' }} --browser chromium" + command: "yarn test:e2e${{ (matrix.test.type == 'cctp' && ':cctp') || (matrix.test.type == 'orbit' && ':orbit') || '' }} --browser chrome" wait-on: http://127.0.0.1:3000 wait-on-timeout: 120 spec: ./packages/arb-token-bridge-ui/tests/e2e/specs/* @@ -118,4 +144,4 @@ jobs: then gh actions-cache delete build-artifacts-${{ github.run_id }}-${{ github.run_attempt }} --confirm fi - shell: bash \ No newline at end of file + shell: bash