diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2abe509c757..f56716bd336 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -753,3 +753,90 @@ jobs: run: tests/Fixtures/app/console cache:clear --ansi - name: Run Behat tests run: vendor/bin/behat --out=std --format=progress --profile=default --no-interaction + + phpunit-symfony-lowest: + name: PHPUnit (PHP ${{ matrix.php }}) (Symfony lowest) + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + php: + - '8.1' + - '8.2' + fail-fast: false + # env: + # See https://github.com/doctrine/DoctrineMongoDBBundle/pull/673 + #SYMFONY_DEPRECATIONS_HELPER: max[direct]=0 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: pecl, composer + extensions: intl, bcmath, curl, openssl, mbstring + coverage: none + ini-values: memory_limit=-1 + - name: Get composer cache directory + id: composercache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ${{ steps.composercache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + - name: Remove cache + run: rm -Rf tests/Fixtures/app/var/cache/* + - name: Update project dependencies + run: composer update --prefer-lowest --no-interaction --no-progress --ansi + - name: Install PHPUnit + run: vendor/bin/simple-phpunit --version + - name: Clear test app cache + run: tests/Fixtures/app/console cache:clear --ansi + - name: Run PHPUnit tests + run: vendor/bin/simple-phpunit + + behat-symfony-lowest: + name: Behat (PHP ${{ matrix.php }}) (Symfony lowest) + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + php: + - '8.1' + - '8.2' + fail-fast: false + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: pecl, composer + extensions: intl, bcmath, curl, openssl, mbstring + coverage: none + ini-values: memory_limit=-1 + - name: Install additional packages + run: sudo apt-get install moreutils + - name: Get composer cache directory + id: composercache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ${{ steps.composercache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + - name: Remove cache + run: rm -Rf tests/Fixtures/app/var/cache/* + - name: Update project dependencies + run: composer update --prefer-lowest --no-interaction --no-progress --ansi + - name: Install PHPUnit + run: vendor/bin/simple-phpunit --version + - name: Clear test app cache + run: tests/Fixtures/app/console cache:clear --ansi + - name: Run Behat tests + run: vendor/bin/behat --out=std --format=progress --profile=default --no-interaction diff --git a/composer.json b/composer.json index 621ef2022e2..2d2f8455fe3 100644 --- a/composer.json +++ b/composer.json @@ -24,13 +24,13 @@ "symfony/property-info": "^6.1", "symfony/serializer": "^6.1", "symfony/web-link": "^6.1", - "willdurand/negotiation": "^2.0.3 || ^3.0" + "willdurand/negotiation": "^3.0" }, "require-dev": { "behat/behat": "^3.1", "behat/mink": "^1.9@dev", "doctrine/cache": "^1.11 || ^2.1", - "doctrine/common": "^2.11 || ^3.0", + "doctrine/common": "^2.11 || ^3.1", "doctrine/data-fixtures": "^1.2.2", "doctrine/dbal": "^2.6 || ^3.0", "doctrine/doctrine-bundle": "^1.12 || ^2.0", @@ -94,6 +94,9 @@ "doctrine/dbal": "<2.10", "doctrine/mongodb-odm": "<2.2", "doctrine/persistence": "<1.3", + "symfony/service-contracts": "<3", + "phpunit/phpunit": "<9.5", + "phpspec/prophecy": "<1.15", "elasticsearch/elasticsearch": ">=8.0" }, "suggest": {