From 85f9c19a24f48c32d252b9ef14e2c14cfae973ef Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 20 Mar 2024 13:46:39 +0300 Subject: [PATCH] fix --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3542878b..fb5fab02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,15 @@ jobs: # - "2.2.11" - "3.5.1" + services: + mysql: + image: mysql:5.7 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: yiitest + ports: + - 3306:3306 + steps: - name: Checkout uses: actions/checkout@v2.3.4 @@ -62,9 +71,6 @@ jobs: - name: Setup source database run: | - sudo systemctl start mysql.service - echo -e '[mysqld]\ndefault_authentication_plugin=mysql_native_password' > "$HOME/.my.cnf" - mysql -uroot -proot -e 'ALTER USER "root"@"localhost" IDENTIFIED WITH mysql_native_password BY "root";FLUSH PRIVILEGES;' mysql -uroot -proot -e 'CREATE DATABASE `yiitest`;' mysql -D yiitest -uroot -proot < tests/data/source.sql