Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb65ec4

Browse files
committed
Also test on Chrome for better coverage
1 parent 906ea02 commit eb65ec4

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}, Sel. ${{ matrix.selenium_version }}), ${{ matrix.browser }}${{ 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
@@ -82,7 +93,7 @@ jobs:
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: |
@@ -95,7 +106,7 @@ jobs:
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

Comments
 (0)