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 Oct 16, 2022
1 parent 5d15043 commit d358fb1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ 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: [ '3.141.59' ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
include:
- selenium: '2.53.1'
php: 'latest'
fail-fast: false

steps:
Expand All @@ -33,8 +32,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 +45,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 +66,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: logs_php-${{ matrix.php }}
path: |
logs
path: logs

0 comments on commit d358fb1

Please sign in to comment.