From 6be5213d048c0b884b596a58f5602f45159c36d1 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 11 Apr 2021 22:28:40 -0400 Subject: [PATCH] ci: socket Signed-off-by: Agnes Lin --- .github/workflows/continuous-integration.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index cc639b2..011ce0a 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -50,12 +50,12 @@ jobs: run: | sudo systemctl start mysql docker ps -a - docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld:/host/mysqld -d mysql:5.7 + while ! mysqladmin ping --host=127.0.0.1 --port 3000 --password=$MYSQL_ROOT_PASSWORD --silent < ./test/schema.sql; do sleep 1 done docker container ls - mysql -uroot -proot "SHOW DATABASES;" + mysql -uroot -proot - name: npm install, build, and test run: | npm install @@ -63,4 +63,5 @@ jobs: env: DB_PORT: 3306 CI: true -# docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld/mysqld.sock:/host/mysqld/mysqld.sock -d mysql:5.7 \ No newline at end of file +# docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld/mysqld.sock:/host/mysqld/mysqld.sock -d mysql:5.7 + # docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld:/host/mysqld -d mysql:5.7 \ No newline at end of file