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"
- name: npm install, build, and test
run: |
mysqladmin -u root -proot shutdown
sudo service mysql start
docker ps -a
while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do
sleep 1
done
mysql -uroot -proot -e "show databases"
# mysqladmin -u root -proot shutdown
# while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do
# sleep 1
# done
npm install
npm test
env: