Skip to content

Commit 171476f

Browse files
committed
ci: fix mysql host for testing
1 parent 5bad5d1 commit 171476f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
run: |
154154
echo "APP_ENV=testing" >> .env
155155
echo "DB_CONNECTION=mysql" >> .env
156-
echo "DB_HOST=127.0.0.1" >> .env
156+
echo "DB_HOST=mysql" >> .env
157157
echo "DB_PORT=3306" >> .env
158158
echo "DB_DATABASE=laravel_blog_test" >> .env
159159
echo "DB_USERNAME=laravel_user" >> .env
@@ -165,7 +165,7 @@ jobs:
165165
- name: Wait for MySQL to be ready
166166
run: |
167167
for i in {1..30}; do
168-
if mysqladmin ping -h 127.0.0.1 -u laravel_user -plaravel_password --silent; then
168+
if mysqladmin ping -h mysql -u laravel_user -plaravel_password --silent; then
169169
echo "MySQL is ready"
170170
break
171171
fi

0 commit comments

Comments
 (0)