Skip to content

Commit 605050e

Browse files
committed
Check Mink Driver bg
1 parent 4b355f5 commit 605050e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,23 @@ jobs:
9595
run: vendor/bin/mink-test-server > mink-test-server.log 2>&1 &
9696
shell: bash
9797

98+
- name: Check Mink test server process
99+
run: |
100+
sleep 2
101+
pgrep -af 'php.*8002' || (echo "No PHP server running on 8002" && exit 1)
102+
netstat -tlnp || true
103+
shell: bash
104+
98105
- name: Wait for Mink test server to be ready
99106
run: |
100107
for i in {1..60}; do
101-
if curl -fsS http://127.0.0.1:8002/ >/dev/null; then
108+
if curl -fsS http://127.0.0.1:8002/ >/dev/null || curl -fsS http://localhost:8002/ >/dev/null; then
102109
echo "Mink test server is up"; exit 0;
103110
fi
104111
sleep 1;
105112
done
106113
echo "Mink test server did not become ready in time"; exit 1
114+
shell: bash
107115

108116
- name: PHPUnit (Mink driver testsuite)
109117
run: vendor/bin/phpunit --colors=always

0 commit comments

Comments
 (0)