1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Move prepare database commands to the bootstrap file

This commit is contained in:
Yassine Guedidi 2024-01-07 22:29:51 +01:00
parent c35aa64079
commit 4a4b584a46
3 changed files with 31 additions and 19 deletions

View file

@ -73,12 +73,8 @@ jobs:
with:
composer-options: "--optimize-autoloader --prefer-dist"
- name: "Prepare database"
run: |
cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
php bin/console doctrine:database:drop --force --env=test
php bin/console doctrine:database:create --env=test
php bin/console doctrine:migrations:migrate --no-interaction --env=test -vv
- name: "Prepare database configuration"
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
- name: "Prepare fixtures"
run: "make fixtures"
@ -148,12 +144,8 @@ jobs:
with:
composer-options: "--optimize-autoloader --prefer-dist"
- name: "Prepare database"
run: |
cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
php bin/console doctrine:database:drop --force --env=test
php bin/console doctrine:database:create --env=test
php bin/console doctrine:migrations:migrate --no-interaction --env=test -vv
- name: "Prepare database configuration"
run: cp app/config/tests/parameters_test.${{ matrix.database }}.yml app/config/parameters_test.yml
- name: "Prepare fixtures"
run: "make fixtures"