Fix tests #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
Mink: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] | |
include: | |
- selenium: 'latest' | |
php: 'latest' | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
tools: composer | |
ini-values: error_reporting=-1, display_errors=On | |
- name: Install dependencies | |
run: composer install | |
- name: Start Selenium | |
run: | | |
mkdir logs | |
docker run --net host --name firefox --volume /dev/shm:/dev/shm --shm-size 2g "seleniarm/standalone-firefox:${{ matrix.selenium }}" &> logs/selenium-firefox.log & | |
docker run --net host --name chrome --volume /dev/shm:/dev/shm --shm-size 2g "seleniarm/standalone-chrome:${{ matrix.selenium }}" &> logs/selenium-chrome.log & | |
- name: Run tests | |
run: ./vendor/bin/phpunit test/Test/WebDriver/SeleniumWebDriverTest.php |