Skip to content

Commit 0e5afb1

Browse files
committed
Actions: Wait MySQL
1 parent 96b7583 commit 0e5afb1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ jobs:
6060
6161
- name: Set up MySQL
6262
run: |
63-
mysql -h 127.0.0.1 -uroot -e "select version()"
63+
while :
64+
do
65+
sleep 1
66+
mysql --protocol=tcp -e 'select version()' && break
67+
done
6468
mysql -h 127.0.0.1 -uroot -e "SET GLOBAL local_infile=on"
6569
mysql -h 127.0.0.1 -uroot -e 'create database test1 DEFAULT CHARACTER SET utf8mb4'
6670
mysql -h 127.0.0.1 -uroot -e 'create database test2 DEFAULT CHARACTER SET utf8mb4'

0 commit comments

Comments
 (0)