mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-16 18:55:15 +00:00
Move prepare database commands to CI workflow
This commit is contained in:
parent
3e403b84d3
commit
c35aa64079
2 changed files with 10 additions and 5 deletions
12
.github/workflows/continuous-integration.yml
vendored
12
.github/workflows/continuous-integration.yml
vendored
|
@ -74,7 +74,11 @@ jobs:
|
||||||
composer-options: "--optimize-autoloader --prefer-dist"
|
composer-options: "--optimize-autoloader --prefer-dist"
|
||||||
|
|
||||||
- name: "Prepare database"
|
- name: "Prepare database"
|
||||||
run: "make prepare DB=${{ matrix.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 fixtures"
|
- name: "Prepare fixtures"
|
||||||
run: "make fixtures"
|
run: "make fixtures"
|
||||||
|
@ -145,7 +149,11 @@ jobs:
|
||||||
composer-options: "--optimize-autoloader --prefer-dist"
|
composer-options: "--optimize-autoloader --prefer-dist"
|
||||||
|
|
||||||
- name: "Prepare database"
|
- name: "Prepare database"
|
||||||
run: "make prepare DB=${{ matrix.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 fixtures"
|
- name: "Prepare fixtures"
|
||||||
run: "make fixtures"
|
run: "make fixtures"
|
||||||
|
|
|
@ -32,9 +32,6 @@ build: ## Run webpack
|
||||||
@yarn build:$(ENV)
|
@yarn build:$(ENV)
|
||||||
|
|
||||||
prepare: ## Prepare database for testsuite
|
prepare: ## Prepare database for testsuite
|
||||||
ifdef DB
|
|
||||||
cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml
|
|
||||||
endif
|
|
||||||
-php bin/console doctrine:database:drop --force --env=test
|
-php bin/console doctrine:database:drop --force --env=test
|
||||||
php bin/console doctrine:database:create --env=test
|
php bin/console doctrine:database:create --env=test
|
||||||
php bin/console doctrine:migrations:migrate --no-interaction --env=test -vv
|
php bin/console doctrine:migrations:migrate --no-interaction --env=test -vv
|
||||||
|
|
Loading…
Reference in a new issue