From d43d2c090089ae2853c5796c8365befbeb9ab6cb Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 11 Apr 2021 22:55:49 -0400 Subject: [PATCH] ci: start over wirh builtin mysql] Signed-off-by: Agnes Lin --- .github/workflows/continuous-integration.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 2b20fb3..f7360f0 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -17,7 +17,7 @@ jobs: services: mysql: - image: mysql:5.7 + image: mysql:5.7.22 env: MYSQL_USER: user MYSQL_PASSWORD: pass @@ -47,14 +47,15 @@ jobs: # mysql version: 5.7 # mysql database: testdb # mysql root password: root - # mysql user: user # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too + # mysql user: user # mysql password: pass - name: Wait for MySQL run: | sudo systemctl start mysql - while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do - sleep 1 - done + sleep 20 + # while ! mysqladmin ping --host=127.0.0.1 --port 3306 -uroot --password=root --silent; do + # sleep 1 + # done # sudo apt-get update # sudo apt-get install -y mysql-client # docker ps -a