forked from instaclick/php-webdriver
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.25 KB
/
Tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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