@@ -38,18 +38,29 @@ jobs:
3838 - run : vendor/bin/phpstan analyze
3939
4040 tests :
41- name : " Tests (PHP ${{ matrix.php }}, Selenium ${{ matrix.selenium_version }})${{ matrix.with_coverage == true && ' with coverage' || ''}}"
41+ name : " Tests (PHP ${{ matrix.php }}, Selenium ${{ matrix.selenium_version }}), ${{ matrix.selenium_version }} ${{ matrix.with_coverage == true && ' with coverage' || ''}}"
4242 runs-on : ubuntu-latest
4343 strategy :
4444 matrix :
4545 selenium_version : [ '2.53.1' ]
46+ browser : [ 'firefox' ]
4647 php : [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
4748 with_coverage : [ false ]
4849 include :
4950 - selenium_version : ' 2.53.1'
51+ browser : ' firefox'
5052 php : ' 8.3'
5153 with_coverage : true
5254 - 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'
5364 php : ' 8.3'
5465 with_coverage : true
5566 fail-fast : false
8293
8394 - name : Start Selenium
8495 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
8697
8798 - name : Wait for browser & PHP to start
8899 run : |
95106 SELENIUM_VERSION : ${{ matrix.selenium_version }}
96107 DRIVER_URL : http://localhost:4444/wd/hub
97108 WEB_FIXTURES_HOST : http://host.docker.internal:8002
98- WEB_FIXTURES_BROWSER : firefox
109+ WEB_FIXTURES_BROWSER : ${{ matrix.browser }}
99110 DRIVER_MACHINE_BASE_PATH : /fixtures/
100111 run : |
101112 vendor/bin/phpunit -v --coverage-clover=coverage.xml --log-junit junit.xml
@@ -106,7 +117,7 @@ jobs:
106117 SELENIUM_VERSION : ${{ matrix.selenium_version }}
107118 DRIVER_URL : http://localhost:4444/wd/hub
108119 WEB_FIXTURES_HOST : http://host.docker.internal:8002
109- WEB_FIXTURES_BROWSER : firefox
120+ WEB_FIXTURES_BROWSER : ${{ matrix.browser }}
110121 DRIVER_MACHINE_BASE_PATH : /fixtures/
111122 run : |
112123 vendor/bin/phpunit -v
@@ -133,6 +144,6 @@ jobs:
133144 if : ${{ failure() }}
134145 uses : actions/upload-artifact@v4
135146 with :
136- name : logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_firefox
147+ name : logs_php-${{ matrix.php }}_selenium-${{ matrix.selenium_version }}_${{ matrix.browser }}
137148 path : |
138149 logs
0 commit comments