mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 03:41:06 +07:00
Improve symfony example workflows
This commit is contained in:
parent
862f206cd2
commit
1f94ad201f
@ -43,11 +43,11 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install Composer dependencies
|
||||
run: |
|
||||
composer require --dev symfony/orm-pack symfony/phpunit-bridge
|
||||
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
php bin/phpunit install
|
||||
- name: Run Migration
|
||||
run: |
|
||||
composer require symfony/orm-pack
|
||||
php bin/console doctrine:schema:update --force || echo "No migrations found or schema update failed"
|
||||
php bin/console doctrine:migrations:migrate || echo "No migrations found or migration failed"
|
||||
env:
|
||||
|
@ -41,11 +41,11 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install Composer dependencies
|
||||
run: |
|
||||
composer require --dev symfony/orm-pack symfony/phpunit-bridge
|
||||
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
php bin/phpunit install
|
||||
- name: Run Migration
|
||||
run: |
|
||||
composer require symfony/orm-pack
|
||||
php bin/console doctrine:schema:update --force || echo "No migrations found or schema update failed"
|
||||
php bin/console doctrine:migrations:migrate || echo "No migrations found or migration failed"
|
||||
env:
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-composer-
|
||||
- name: Install Composer dependencies
|
||||
run: |
|
||||
composer require symfony/orm-pack
|
||||
composer require --dev symfony/phpunit-bridge
|
||||
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
php bin/phpunit install
|
||||
- name: Run Tests
|
||||
|
Loading…
Reference in New Issue
Block a user