Skip to content

Commit

Permalink
ci: call updates for related PHP versions
Browse files Browse the repository at this point in the history
Signed-off-by: Thibaud CANALE <[email protected]>
  • Loading branch information
thican committed Jan 6, 2025
1 parent 8e6a9a1 commit 0261d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
run: composer config --unset platform && composer config platform.php ${{ matrix.php-versions }}

- name: Update dependencies for PHP 8.x
if: ${{ matrix.php-versions == '8.0' || matrix.php-versions == '8.1' }}
if: ${{ startsWith(matrix.php-versions, '8.') }}
run: |
composer update && \
composer remove --dev phpunit/phpunit && \
composer require --dev phpunit/php-text-template ^2.0 && \
composer require --dev phpunit/phpunit ^9.0
- name: Update dependencies for PHP 7.x
if: ${{ matrix.php-versions != '8.0' && matrix.php-versions != '8.1' }}
if: ${{ startsWith(matrix.php-versions, '7.') }}
run: composer update

- name: Clean up
Expand Down

0 comments on commit 0261d56

Please sign in to comment.