diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90b8559b..95d53790 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,15 +4,19 @@ on: [push, pull_request] jobs: tests: - name: Symfony ${{ matrix.symfony-version }} on PHP ${{ matrix.php-version }} + name: Symfony ${{ matrix.symfony-version }} on PHP ${{ matrix.php-version }} flags ${{ matrix.composer-flags }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: php-version: ['7.2', '7.3', '7.4', '8.0'] + composer-flags: [''] symfony-version: ['5.1'] include: + - php-version: 7.2 + symfony-version: "^4.4" + composer-flags: "--prefer-lowest" - php-version: 7.2 symfony-version: "^4.4" - php-version: 7.3 @@ -56,7 +60,13 @@ jobs: composer require --no-update symfony/yaml=${{ matrix.symfony-version }} - name: Install Composer dependencies + if: matrix.composer-flags == '' run: composer install + - name: Install Composer dependencies with options + if: matrix.composer-flags != '' + # Use "update" instead of "install" since it allows using the "--prefer-lowest" option + run: composer update ${{ matrix.composer-flags }} + - name: Run tests run: php ./vendor/bin/phpunit --testdox diff --git a/.travis.yml b/.travis.yml index f7cb5302..9b2b87d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,8 @@ cache: matrix: include: + - php: 7.2 + env: SYMFONY_VERSION="4.4.*" COMPOSER_FLAGS="--prefer-lowest" - php: 7.2 env: SYMFONY_VERSION="4.4.*" - php: 7.3 diff --git a/composer.json b/composer.json index 8ab2ad9f..d36c3b05 100644 --- a/composer.json +++ b/composer.json @@ -18,22 +18,23 @@ "php": "^7.2 || ^8.0", "doctrine/annotations": "^1.3", "phpunit/phpunit": "^7.5.0 || ^8.0 || ^9.0", - "symfony/browser-kit": "^3.4 || ^4.4 || ^5.1", - "symfony/framework-bundle": "^3.4 || ^4.4 || ^5.1" + "symfony/browser-kit": "^4.4 || ^5.1", + "symfony/framework-bundle": "^4.4 || ^5.1" }, "require-dev": { - "doctrine/doctrine-bundle": "^1.8 || ^2.0", - "doctrine/orm": "^2.6.3", + "doctrine/doctrine-bundle": "^2.1", + "doctrine/orm": "^2.7", "monolog/monolog": "~1.11", - "symfony/css-selector": "^3.4.33 || ^4.4 || ^5.1", - "symfony/form": "^3.4.33 || ^4.4 || ^5.1", - "symfony/http-kernel": "^3.4.33 || ^4.4 || ^5.1", + "symfony/css-selector": "^4.4 || ^5.1", + "symfony/doctrine-bridge": "^4.4 || ^5.1", + "symfony/form": "^4.4 || ^5.1", + "symfony/http-kernel": "^4.4 || ^5.1", "symfony/monolog-bundle": "^3.4", - "symfony/phpunit-bridge": "^3.4.33 || ^4.4 || ^5.1", - "symfony/security-bundle": "^3.4.33 || ^4.4 || ^5.1", - "symfony/twig-bundle": "^3.4.33 || ^4.4 || ^5.1", - "symfony/validator": "^3.4.33 || ^4.4 || ^5.1", - "symfony/yaml": "^3.4.33 || ^4.4 || ^5.1", + "symfony/phpunit-bridge": "^4.4 || ^5.1", + "symfony/security-bundle": "^4.4 || ^5.1", + "symfony/twig-bundle": "^4.4 || ^5.1", + "symfony/validator": "^4.4 || ^5.1", + "symfony/yaml": "^4.4 || ^5.1", "twig/twig": "^2.0 || ^3.0" }, "conflict": {