From 938121df1852ed45df6bcab515cede37f92deea5 Mon Sep 17 00:00:00 2001 From: Mat Moore Date: Mon, 26 Feb 2024 11:27:48 +0000 Subject: [PATCH] See if we can install a mathcing chromedriver for the builtin chromium --- .github/workflows/test.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb4d651e..f2623bb3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,17 +42,12 @@ jobs: - name: Get Chromium version 🌐 run: | - CHROMIUM_VERSION=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE | cut -d. -f1) + CHROMIUM_VERSION=$(google-chrome --product-version) echo "Chromium version: $CHROMIUM_VERSION" echo "CHROMIUM_VERSION=$CHROMIUM_VERSION" >> $GITHUB_ENV - - name: Setup Chrome 🌐 - id: setup-chrome - uses: browser-actions/setup-chrome@v1 - with: - chrome-version: ${{ env.CHROMIUM_VERSION }} - name: Install chromedriver 🚗 run: | - npm install -g chromedriver@$CHROMIUM_VERSION + npm install -g chromedriver@${CHROMIUM_VERSION%.*} - name: run selenium tests id: slow-tests if: steps.fast-tests.outcome == 'success'