From 1f94ad201f1a18601d9ff5919d6ad1afdf587068 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 19 Dec 2020 18:41:33 +0530 Subject: [PATCH] Improve symfony example workflows --- examples/symfony-mysql.yml | 2 +- examples/symfony-postgres.yml | 2 +- examples/symfony.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/symfony-mysql.yml b/examples/symfony-mysql.yml index d4458cfa..34192c3e 100644 --- a/examples/symfony-mysql.yml +++ b/examples/symfony-mysql.yml @@ -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: diff --git a/examples/symfony-postgres.yml b/examples/symfony-postgres.yml index f595c557..64c89528 100644 --- a/examples/symfony-postgres.yml +++ b/examples/symfony-postgres.yml @@ -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: diff --git a/examples/symfony.yml b/examples/symfony.yml index 6845e0ac..a9402eed 100644 --- a/examples/symfony.yml +++ b/examples/symfony.yml @@ -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