Skip to content

Commit 1b0cf84

Browse files
committed
fix: Use docker exec for MySQL health check instead of host connection
1 parent cad0f34 commit 1b0cf84

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/unit-test-plugin-nightly.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ jobs:
2323
docker compose up -d
2424
2525
- name: Wait for db
26-
env:
27-
MYSQL_ROOT_PASSWORD: wordpress
26+
working-directory: ./plugins/faustwp
2827
run: |
29-
while ! mysqladmin ping --host=127.0.0.1 --port=33066 --password=$MYSQL_ROOT_PASSWORD --silent; do
28+
until docker compose exec -T db mysqladmin ping -pwordpress --silent; do
3029
sleep 1
3130
done
3231

.github/workflows/unit-test-plugin.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ jobs:
2828
docker compose up -d
2929
3030
- name: Wait for db
31-
env:
32-
MYSQL_ROOT_PASSWORD: wordpress
31+
working-directory: ./plugins/faustwp
3332
run: |
34-
while ! mysqladmin ping --host=127.0.0.1 --port=33066 --password=$MYSQL_ROOT_PASSWORD --silent; do
33+
until docker compose exec -T db mysqladmin ping -pwordpress --silent; do
3534
sleep 1
3635
done
3736

0 commit comments

Comments
 (0)