From 0261d5672f944c9f610223edfedb7b51848639cf Mon Sep 17 00:00:00 2001 From: Thibaud CANALE Date: Mon, 6 Jan 2025 06:21:43 +0100 Subject: [PATCH] ci: call updates for related PHP versions Signed-off-by: Thibaud CANALE --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11d82b0da..dea4accae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ 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 && \ @@ -44,7 +44,7 @@ jobs: 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