From 4743f53aefd2f9fdef9e3ac111effba38fd899ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 7 Oct 2023 21:49:29 +0200 Subject: [PATCH] Restore job with --prefer-lowest It is useful to catch misconfigured dependency constraints. It was removed in 721ceb5c07b155fe35aa6f3cbd7506813fbc0b4a. --- .github/workflows/continuous-integration.yml | 8 +++++++- composer.json | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 0b1f9c10ddf..dfba1d56b5f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -41,6 +41,8 @@ jobs: - "pdo_sqlite" proxy: - "common" + deps: + - "highest" include: - php-version: "8.2" dbal-version: "3@dev" @@ -55,6 +57,10 @@ jobs: dbal-version: "default" proxy: "lazy-ghost" extension: "pdo_sqlite" + - php-version: "8.1" + dbal-version: "default" + deps: "lowest" + extension: "pdo_sqlite" steps: - name: "Checkout" @@ -78,6 +84,7 @@ jobs: uses: "ramsey/composer-install@v2" with: composer-options: "--ignore-platform-req=php+" + dependency-versions: "${{ matrix.deps }}" - name: "Run PHPUnit" run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage-no-cache.xml" @@ -314,7 +321,6 @@ jobs: name: "${{ github.job }}-${{ matrix.mysql-version }}-${{ matrix.extension }}-${{ matrix.php-version }}-${{ matrix.dbal-version }}-coverage" path: "coverage*.xml" - upload_coverage: name: "Upload coverage to Codecov" runs-on: "ubuntu-22.04" diff --git a/composer.json b/composer.json index 4f2b29e1aa7..10b15717993 100644 --- a/composer.json +++ b/composer.json @@ -32,18 +32,18 @@ "doctrine/instantiator": "^1.3 || ^2", "doctrine/lexer": "^2.1 || ^3", "doctrine/persistence": "^3.1.1", - "psr/cache": "^1 || ^2 || ^3", + "psr/cache": "^3", "symfony/console": "^5.4 || ^6.0 || ^7.0" }, "require-dev": { "doctrine/coding-standard": "^12.0", "phpbench/phpbench": "^1.0", "phpstan/phpstan": "1.10.35", - "phpunit/phpunit": "^10.0.14", + "phpunit/phpunit": "^10.4.0", "psr/log": "^1 || ^2 || ^3", "squizlabs/php_codesniffer": "3.7.2", "symfony/cache": "^5.4 || ^6.2", - "symfony/var-exporter": "^5.4 || ^6.2", + "symfony/var-exporter": "^6.2", "vimeo/psalm": "5.15.0" }, "suggest": {