Skip to content

Commit

Permalink
ensure testing against fixed versions of PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Feb 23, 2022
1 parent 3df0f82 commit 73aa964
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 73aa964

Please sign in to comment.