From 89bd4e7d85a2da957c6094245a78ff34bb25954c Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Mon, 23 Sep 2024 07:45:41 +0200 Subject: [PATCH] Use console tools to install Galette an plugin --- .github/workflows/ci-linux.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 0739425..3818629 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -205,15 +205,17 @@ jobs: POSTGRES_HOST: localhost POSTGRES_PORT: 5432 run: | - PGPASSWORD=g@l3tte psql -d galette_tests -a -f galette-core/galette/install/scripts/pgsql.sql -U galette_tests -h localhost - PGPASSWORD=g@l3tte psql -d galette_tests -a -f galette-core/galette/plugins/plugin-activities/scripts/pgsql.sql -U galette_tests -h localhost + cd galette-core/galette + bin/console galette:install -v --dbtype=pgsql --dbhost=localhost --dbname=galette_tests --dbuser=galette_tests --dbpass=g@l3tte --admin=admin --password=admin --no-interaction + bin/console galette:plugin:db-install galette-activities if: env.skip != 'true' && startsWith(matrix.db-image, 'postgres') - name: Init for MariaDB run: | + cd galette-core/galette mysql -e 'create database IF NOT EXISTS galette_tests;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 - mysql -e 'use galette_tests; source galette-core/galette/install/scripts/mysql.sql;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 - mysql -e 'use galette_tests; source galette-core/galette/plugins/plugin-activities/scripts/mysql.sql;' -u galette_tests --password=g@l3tte -h 127.0.0.1 -P 3306 + bin/console galette:install -v --dbtype=mysql --dbhost=127.0.0.1 --dbname=galette_tests --dbuser=galette_tests --dbpass=g@l3tte --admin=admin --password=admin --no-interaction + bin/console galette:plugin:db-install galette-activities if: env.skip != 'true' && (startsWith(matrix.db-image, 'mysql') || startsWith(matrix.db-image, 'mariadb')) - name: Unit tests