ci: start over wirh builtin mysql]

Signed-off-by: Agnes Lin <agneslin.lin@ibm.com>
This commit is contained in:
Agnes Lin 2021-04-11 23:23:25 -04:00
parent c060849f18
commit 3dc42c0cad
1 changed files with 5 additions and 4 deletions

View File

@ -63,12 +63,13 @@ jobs:
# mysql -uroot -proot -e "show databases" # mysql -uroot -proot -e "show databases"
- name: npm install, build, and test - name: npm install, build, and test
run: | run: |
mysqladmin -u root -proot shutdown
sudo service mysql start sudo service mysql start
docker ps -a docker ps -a
while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do mysql -uroot -proot -e "show databases"
sleep 1 # mysqladmin -u root -proot shutdown
done # while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do
# sleep 1
# done
npm install npm install
npm test npm test
env: env: