diff --git a/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml b/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml index fb132979d..9f9537c91 100644 --- a/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml +++ b/.github/workflows/cypress-workflow-vanilla-snapshot-based.yml @@ -38,14 +38,20 @@ jobs: run: | CHROMIUM_DIR="/usr/local/share/chromium" CHROMIUM_BIN="${CHROMIUM_DIR}/chrome-linux/chrome" + ## install Chromium on version 115, the version greater than 115 will hang under some cases wget -q -O chromium.zip https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1148103%2Fchrome-linux.zip?alt=media sudo rm -rf $CHROMIUM_DIR sudo mkdir $CHROMIUM_DIR + + ## remove exist chromium installed by runner-image sudo unzip -qq chromium.zip -d $CHROMIUM_DIR sudo unlink /usr/bin/chromium sudo unlink /usr/bin/chromium-browser + + ## add link to the installed Chromium sudo ln -s $CHROMIUM_BIN /usr/local/bin/chromium sudo ln -s $CHROMIUM_BIN /usr/local/bin/chromium-browser + rm chromium.zip - name: Check versions