diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dfda727..052aa2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -78,6 +78,9 @@ jobs: php: '8.1' - phpunit: '^8.0' php: '7.1' + - phpunit: '^8.0' + php: '8.1' + dependency-version: 'prefer-lowest' - phpunit: '^9.0' php: '7.1' - phpunit: '^9.0' @@ -99,10 +102,11 @@ jobs: path: ~/.composer/cache/files key: dependencies-${{ matrix.dependency-version }}-phpunit-${{ matrix.phpunit }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-v3 + - name: Require the dependency matrix version + run: composer require 'phpunit/phpunit:${{ matrix.phpunit }}' --no-update --no-interaction --verbose --no-scripts + - name: Install dependencies - run: | - composer require 'phpunit/phpunit:${{ matrix.phpunit }}' --no-update --no-interaction --verbose --no-scripts - composer update --${{ matrix.dependency-version }} --no-suggest --no-interaction --verbose --no-scripts + run: composer update --${{ matrix.dependency-version }} --no-suggest --no-interaction --verbose --no-scripts - name: Check platform requirements run: composer check-platform-reqs --verbose