Skip to content

Commit

Permalink
See if we can install a mathcing chromedriver for the builtin chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed Feb 26, 2024
1 parent ae10143 commit 938121d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 938121d

Please sign in to comment.