Skip to content

Commit

Permalink
Add Selenium 4 build to matrix (fixes #272)
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Mar 17, 2021
1 parent 816c608 commit 27aaa82
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/tests.yaml
Expand Up @@ -51,9 +51,12 @@ jobs:
integration-tests:
runs-on: ubuntu-latest
name: Integration tests
env:
SELENIUM_VERSION: 3.141.59

strategy:
matrix:
selenium-version: ['3.141.59', '4.0.0-beta-2']

name: Integration tests (Selenium ${{ matrix.selenium-version }})

steps:
- uses: actions/checkout@v2
Expand All @@ -70,11 +73,13 @@ jobs:
run: composer update --no-interaction

- name: Start Selenium server and Xvfb
env:
SELENIUM_EXTRA_PARAMS: "${{ matrix.selenium-version != '3.141.59' && 'standalone' || '' }}"
run: |
google-chrome --version
chromedriver --version
SELENIUM_JAR=$(bin/steward install --no-interaction --no-ansi $SELENIUM_VERSION)
xvfb-run --server-args="-screen 0, 1280x720x24" --auto-servernum java -jar $SELENIUM_JAR -log selenium-server.log &
SELENIUM_JAR=$(bin/steward install --no-interaction --no-ansi ${{ matrix.selenium-version }})
xvfb-run --server-args="-screen 0, 1280x720x24" --auto-servernum java -jar $SELENIUM_JAR $SELENIUM_EXTRA_PARAMS >selenium-server.log &
while ! nc -z localhost 4444 </dev/null; do echo Waiting for Selenium server to start...; sleep 1; done
- name: Run tests
Expand Down

0 comments on commit 27aaa82

Please sign in to comment.