Skip to content

Commit

Permalink
Fetch latest stable chromedriver from JSON endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 23, 2024
1 parent 6ad0842 commit 74a0cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
DRUPAL_DIR: /opt/drupal
PHPUNIT_FILE: ${{ github.workspace }}/build_dir/phpunit.xml
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://localhost:9515"]'
CHROMEDRIVER_VERSION: 114.0.5735.90

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allowed_failure }}
Expand Down Expand Up @@ -111,7 +110,8 @@ jobs:
- name: Start chromedriver
if: matrix.test-suite == 'functional-javascript'
run: |-
curl -s -o ./chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
CHROMEDRIVER_URL=$(curl -s "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json"| jq -r '.channels.Stable.downloads.chromedriver[]| select(.platform == "linux64") | .url')
curl -s -o ./chromedriver_linux64.zip $CHROMEDRIVER_URL
unzip chromedriver_linux64.zip
./chromedriver \
--log-path=/tmp/chromedriver.log \
Expand Down

0 comments on commit 74a0cf5

Please sign in to comment.