Reverted the workflow to use mysql db as mariadb doesn't work prperly.
parent
ba5306e0fe
commit
b72e45ae77
|
@ -12,7 +12,22 @@ jobs:
|
|||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_USER: sqlmonarcuser
|
||||
MYSQL_PASSWORD: password
|
||||
MYSQL_VERSION: 10.6.18
|
||||
|
||||
#- name: Shutdown Ubuntu MySQL (SUDO)
|
||||
#run: sudo service mysql stop
|
||||
|
||||
#- name: Start MariaDB and create databases
|
||||
#uses: getong/mariadb-action@v1.1
|
||||
#with:
|
||||
#host port: $MYSQL_HOST_PORT
|
||||
#mariadb version: $MYSQL_VERSION # Optional, default value is "latest". The version of the MariaDB
|
||||
#mysql database: $MYSQL_DATABASE # Optional, default value is "test". The specified database which will be create
|
||||
#mysql root password: $MYSQL_ROOT_PASSWORD # Required if "mysql user" is empty, default is empty. The root superuser password
|
||||
#mysql user: $MYSQL_USER # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
|
||||
#mysql password: $MYSQL_PASSWORD # Required if "mysql user" exists. The password for the "mysql user"
|
||||
|
||||
- name: Start MySQL (SUDO)
|
||||
run: sudo service mysql start
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
@ -46,19 +61,6 @@ jobs:
|
|||
- name: Set MONARC configuration file
|
||||
run: cp ./config/autoload/local.php.dist ./config/autoload/local.php
|
||||
|
||||
- name: Start MariaDB and create databases
|
||||
uses: getong/mariadb-action@v1.1
|
||||
with:
|
||||
host port: $MYSQL_HOST_PORT
|
||||
mariadb version: $MYSQL_VERSION # Optional, default value is "latest". The version of the MariaDB
|
||||
mysql database: $MYSQL_DATABASE # Optional, default value is "test". The specified database which will be create
|
||||
mysql root password: $MYSQL_ROOT_PASSWORD # Required if "mysql user" is empty, default is empty. The root superuser password
|
||||
mysql user: $MYSQL_USER # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
|
||||
mysql password: $MYSQL_PASSWORD # Required if "mysql user" exists. The password for the "mysql user"
|
||||
|
||||
- name: Shutdown Ubuntu MySQL (SUDO)
|
||||
run: sudo service mysql start
|
||||
|
||||
- name: Creating and populating databases
|
||||
run: |
|
||||
mysql -u root -p$MYSQL_ROOT_PASSWORD -P $MYSQL_HOST_PORT -e "CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;"
|
||||
|
@ -69,7 +71,6 @@ jobs:
|
|||
mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_HOST_PORT $MYSQL_DATABASE < db-bootstrap/monarc_structure.sql
|
||||
mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -P $MYSQL_HOST_PORT $MYSQL_DATABASE < db-bootstrap/monarc_data.sql
|
||||
|
||||
|
||||
- name: Upgrading databases
|
||||
run: |
|
||||
./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/Monarc/Core/migrations/phinx.php
|
||||
|
|
Loading…
Reference in New Issue