Skip to content

Commit

Permalink
Actions: Wait MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jan 3, 2021
1 parent 96b7583 commit 0e5afb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ jobs:
- name: Set up MySQL
run: |
mysql -h 127.0.0.1 -uroot -e "select version()"
while :
do
sleep 1
mysql --protocol=tcp -e 'select version()' && break
done
mysql -h 127.0.0.1 -uroot -e "SET GLOBAL local_infile=on"
mysql -h 127.0.0.1 -uroot -e 'create database test1 DEFAULT CHARACTER SET utf8mb4'
mysql -h 127.0.0.1 -uroot -e 'create database test2 DEFAULT CHARACTER SET utf8mb4'
Expand Down

0 comments on commit 0e5afb1

Please sign in to comment.