From 86dd945e2c85e0eeec276224c5a625a0c6fed606 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 11 Apr 2021 22:18:09 -0400 Subject: [PATCH] ci: socket Signed-off-by: Agnes Lin --- .github/workflows/continuous-integration.yaml | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index f01530f..dbaa711 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -48,16 +48,26 @@ jobs: mysql root password: root - name: Wait for MySQL run: | - 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 - mysql -uroot -proot "SHOW DATABASES;" - - name: npm install, build, and test - run: | - npm install - npm test - env: - DB_PORT: 3306 - CI: true + sudo cat /var/run/mysqld/mysqld.sock + + + + + + + + + # 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;" + # - name: npm install, build, and test + # run: | + # npm install + # npm test + # 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