@@ -38,18 +38,29 @@ jobs:
38
38
- run : vendor/bin/phpstan analyze
39
39
40
40
tests :
41
- name : " Tests (PHP ${{ matrix.php }}, Selenium ${{ matrix.selenium_version }})${{ matrix.with_coverage == true && ' with coverage' || ''}}"
41
+ name : " Tests (PHP ${{ matrix.php }}, Sel. ${{ matrix.selenium_version }}), ${{ matrix.browser }} ${{ matrix.with_coverage == true && ' with coverage' || ''}}"
42
42
runs-on : ubuntu-latest
43
43
strategy :
44
44
matrix :
45
45
selenium_version : [ '2.53.1' ]
46
+ browser : [ 'firefox' ]
46
47
php : [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
47
48
with_coverage : [ false ]
48
49
include :
49
50
- selenium_version : ' 2.53.1'
51
+ browser : ' firefox'
50
52
php : ' 8.3'
51
53
with_coverage : true
52
54
- selenium_version : ' 3.141.59'
55
+ browser : ' firefox'
56
+ php : ' 8.3'
57
+ with_coverage : true
58
+ - selenium_version : ' 2.53.1'
59
+ browser : ' chrome'
60
+ php : ' 8.3'
61
+ with_coverage : true
62
+ - selenium_version : ' 3.141.59'
63
+ browser : ' chrome'
53
64
php : ' 8.3'
54
65
with_coverage : true
55
66
fail-fast : false
82
93
83
94
- name : Start Selenium
84
95
run : |
85
- SELENIUM_IMAGE=selenium/standalone-firefox :${{ matrix.selenium_version }} docker compose up --wait
96
+ SELENIUM_IMAGE=selenium/standalone-${{ matrix.browser }} :${{ matrix.selenium_version }} docker compose up --wait
86
97
87
98
- name : Wait for browser & PHP to start
88
99
run : |
95
106
SELENIUM_VERSION : ${{ matrix.selenium_version }}
96
107
DRIVER_URL : http://localhost:4444/wd/hub
97
108
WEB_FIXTURES_HOST : http://host.docker.internal:8002
98
- WEB_FIXTURES_BROWSER : firefox
109
+ WEB_FIXTURES_BROWSER : ${{ matrix.browser }}
99
110
DRIVER_MACHINE_BASE_PATH : /fixtures/
100
111
run : |
101
112
vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml
@@ -106,7 +117,7 @@ jobs:
106
117
SELENIUM_VERSION : ${{ matrix.selenium_version }}
107
118
DRIVER_URL : http://localhost:4444/wd/hub
108
119
WEB_FIXTURES_HOST : http://host.docker.internal:8002
109
- WEB_FIXTURES_BROWSER : firefox
120
+ WEB_FIXTURES_BROWSER : ${{ matrix.browser }}
110
121
DRIVER_MACHINE_BASE_PATH : /fixtures/
111
122
run : |
112
123
vendor/bin/phpunit -v
@@ -133,6 +144,6 @@ jobs:
133
144
if : ${{ failure() }}
134
145
uses : actions/upload-artifact@v4
135
146
with :
136
- name : logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_firefox
147
+ name : logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_${{ matrix.browser }}
137
148
path : |
138
149
logs
0 commit comments