From 28e427f45a6a698a66f9411ec27b78a2ff6d9791 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Sun, 20 Oct 2024 08:49:28 +0200 Subject: [PATCH] Use console tools to install Galette and 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 b1a802e..0a89678 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -214,15 +214,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-maps/scripts/pgsql.sql -U galette_tests -h localhost + cd galette-core + bin/console galette:install -v --dbtype=pgsql --dbhost=localhost --dbname=galette_tests --dbuser=galette_tests --dbpass=g@l3tte --admin=admin --password=admin --no-interaction -w + bin/console galette:plugins:install-db --all if: env.skip != 'true' && startsWith(matrix.db-image, 'postgres') - name: Init for MariaDB run: | + cd galette-core 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-maps/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 -w + bin/console galette:plugins:install-db --all if: env.skip != 'true' && (startsWith(matrix.db-image, 'mysql') || startsWith(matrix.db-image, 'mariadb')) - name: Unit tests