diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 0971558..cc639b2 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -48,27 +48,19 @@ jobs: mysql root password: root - name: Wait for MySQL run: | - sudo ls /var/run/mysql + 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;" - # - 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:/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