From 73aa964dd2dd23e3ab78667c1c4327dc4af1f835 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Thu, 24 Feb 2022 08:51:17 +1100 Subject: [PATCH] ensure testing against fixed versions of PHPUnit --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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