From fdaf1f00037fd069a59550c6eedbe95f2bd3c1b6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 22 Feb 2021 10:51:20 +0530 Subject: [PATCH] Sync symfony examples from v2 --- examples/symfony-mysql.yml | 5 +++-- examples/symfony-postgres.yml | 5 +++-- examples/symfony.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/symfony-mysql.yml b/examples/symfony-mysql.yml index 97d8e817..8ece258a 100644 --- a/examples/symfony-mysql.yml +++ b/examples/symfony-mysql.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions - uses: shivammathur/setup-php@v1 #https://github.com/shivammathur/setup-php + uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: php-version: ${{ matrix.php-versions }} extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql @@ -43,10 +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 c04be1bc..9ba3092c 100644 --- a/examples/symfony-postgres.yml +++ b/examples/symfony-postgres.yml @@ -23,7 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions - uses: shivammathur/setup-php@v1 #https://github.com/shivammathur/setup-php + uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: php-version: ${{ matrix.php-versions }} extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, pgsql @@ -41,10 +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 74a899dd..2a53ed8c 100644 --- a/examples/symfony.yml +++ b/examples/symfony.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions - uses: shivammathur/setup-php@v1 #https://github.com/shivammathur/setup-php + uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php with: php-version: ${{ matrix.php-versions }} extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite @@ -32,7 +32,8 @@ 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 run: php bin/phpunit --coverage-text \ No newline at end of file