diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 1c836fc..30827c6 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -8,12 +8,13 @@ on: jobs: build: - name: PHP ${{ matrix.php-versions }} + name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: php-versions: ['8.2', '8.3', '8.4'] + deps: ['latest', 'lowest'] steps: - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -24,8 +25,12 @@ jobs: - name: Checkout uses: actions/checkout@v2 - run: "composer validate" - - name: "Install dependencies" - run: "composer install --prefer-dist" + - name: "Install dependencies (latest)" + if: matrix.deps == 'latest' + run: "composer install --no-interaction --no-progress --prefer-dist" + - name: "Install dependencies (lowest)" + if: matrix.deps == 'lowest' + run: "composer update --no-interaction --no-progress --prefer-dist --prefer-lowest --prefer-stable" - name: "CS Check" run: "composer cs-check" - name: "Code analyze" diff --git a/composer.json b/composer.json index 638f1a5..ffe6990 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ ], "require": { "php": "^8.2", - "webmozart/assert": "^1.11" + "webmozart/assert": "^1.11 || ^2.1" }, "conflict": { "mezzio/mezzio": "<3.0",