ci: socket
Signed-off-by: Agnes Lin <agneslin.lin@ibm.com>
This commit is contained in:
parent
309bccb774
commit
755a6b2065
|
@ -48,27 +48,19 @@ jobs:
|
||||||
mysql root password: root
|
mysql root password: root
|
||||||
- name: Wait for MySQL
|
- name: Wait for MySQL
|
||||||
run: |
|
run: |
|
||||||
sudo ls /var/run/mysql
|
sudo systemctl start mysql
|
||||||
docker ps -a
|
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: |
|
||||||
# docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld:/host/mysqld -d mysql:5.7
|
npm install
|
||||||
# while ! mysqladmin ping --host=127.0.0.1 --port 3000 --password=$MYSQL_ROOT_PASSWORD --silent < ./test/schema.sql; do
|
npm test
|
||||||
# sleep 1
|
env:
|
||||||
# done
|
DB_PORT: 3306
|
||||||
# docker container ls
|
CI: true
|
||||||
# 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
|
# docker run -it -e MYSQL_ROOT_PASSWORD=root -v /var/run/mysqld/mysqld.sock:/host/mysqld/mysqld.sock -d mysql:5.7
|
Loading…
Reference in New Issue