Skip to content

Commit 42118c4

Browse files
committed
Specify correct WEB_FIXTURES_HOST
1 parent 5133402 commit 42118c4

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,20 @@ jobs:
7373
run: |
7474
composer update --no-interaction --prefer-dist
7575
76-
- name: Setup Mink test server
77-
run: |
78-
mkdir ./logs
79-
./vendor/bin/mink-test-server &> ./logs/mink-test-server.log &
80-
8176
- name: Start Selenium
8277
run: |
8378
SELENIUM_IMAGE=selenium/standalone-firefox:${{ matrix.selenium_version }} docker compose up --wait
8479
85-
- name: Wait for browser & PHP to start
80+
- name: Wait for selenium to start
8681
run: |
87-
while ! nc -z localhost 4444 </dev/null; do echo Waiting for remote driver to start...; sleep 1; done
88-
while ! nc -z localhost 8002 </dev/null; do echo Waiting for PHP server to start...; sleep 1; done
82+
curl --retry 5 --retry-all-errors --retry-delay 1 --max-time 10 --head -X GET http://localhost:4444/wd/hub/status
8983
9084
- name: Run tests with Coverage
9185
if: "${{ matrix.with_coverage == true }}"
9286
env:
9387
SELENIUM_VERSION: ${{ matrix.selenium_version }}
9488
DRIVER_URL: http://localhost:4444/wd/hub
89+
WEB_FIXTURES_HOST: http://host.docker.internal:8002
9590
WEB_FIXTURES_BROWSER: firefox
9691
DRIVER_MACHINE_BASE_PATH: /fixtures/
9792
run: |
@@ -102,6 +97,7 @@ jobs:
10297
env:
10398
SELENIUM_VERSION: ${{ matrix.selenium_version }}
10499
DRIVER_URL: http://localhost:4444/wd/hub
100+
WEB_FIXTURES_HOST: http://host.docker.internal:8002
105101
WEB_FIXTURES_BROWSER: firefox
106102
DRIVER_MACHINE_BASE_PATH: /fixtures/
107103
run: |
@@ -123,6 +119,7 @@ jobs:
123119
- name: Extract docker logs
124120
if: ${{ failure() }}
125121
run: |
122+
mkdir -p ./logs
126123
docker compose logs --no-color &> ./logs/selenium.log
127124
128125
- name: Archive logs artifacts

0 commit comments

Comments
 (0)