Skip to content

Commit

Permalink
Run tests also with Selenium 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Apr 18, 2022
1 parent e5f8421 commit e101450
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ on:
env:
DRIVER_URL: "http://localhost:4444/wd/hub"

defaults:
run:
shell: bash

jobs:

tests:
name: Tests
runs-on: ubuntu-20.04
strategy:
matrix:
selenium: [ '2.53.1', '3.141.59' ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
fail-fast: false

Expand All @@ -33,8 +29,7 @@ jobs:
coverage: "xdebug"
php-version: "${{ matrix.php }}"
tools: composer
# PHP 7.1 development web server segfaults if timezone not set.
ini-values: date.timezone=Europe/Paris, error_reporting=-1, display_errors=On
ini-values: error_reporting=-1, display_errors=On

- name: Install dependencies
run: |
Expand All @@ -47,7 +42,7 @@ jobs:
- name: Start Selenium
run: |
docker run --net host --name selenium --volume /dev/shm:/dev/shm --shm-size 2g selenium/standalone-firefox:2.53.1 &> ./logs/selenium.log &
docker run --net host --name selenium --volume /dev/shm:/dev/shm --shm-size 2g "selenium/standalone-firefox:${{ matrix.selenium }}" &> ./logs/selenium.log &
- name: Wait for browser & PHP to start
run: |
Expand All @@ -68,5 +63,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: logs_php-${{ matrix.php }}
path: |
logs
path: logs

0 comments on commit e101450

Please sign in to comment.