From 5ad901f909b14c182b99a4dd4633e95fa7b2eeec Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sun, 22 Dec 2024 20:43:22 +0100 Subject: [PATCH] Fix CI misuse of `--ignore-platform-reqs` --- .github/workflows/phpcs.yml | 2 +- .github/workflows/phpstan.yml | 3 +-- .github/workflows/phpunit.yml | 16 +++++++++++++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index f4d2625406..f11cd12103 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: composer install --dev --prefer-dist --no-progress --no-suggest --ignore-platform-reqs + run: composer install --dev --prefer-dist --no-progress --no-suggest - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e30505f0d9..dcc23ab028 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -29,10 +29,9 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: 8.2 - tools: composer:v2 - name: "Composer install" run: | - composer install --ignore-platform-reqs + composer install --ignore-platform-req=php+ - name: PHPStan run: | php -v diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index ab1482444c..5ee4325b34 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -24,20 +24,30 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - php-version: ['7.2', '8.4'] + php-version: ['7.2'] + composer-options: [''] include: - php-version: 7.3 os: ubuntu-latest + composer-options: '' - php-version: 7.4 os: ubuntu-latest + composer-options: '' - php-version: 8.0 os: ubuntu-latest + composer-options: '' - php-version: 8.1 os: ubuntu-latest + composer-options: '' - php-version: 8.2 os: ubuntu-latest + composer-options: '' - php-version: 8.3 os: ubuntu-latest + composer-options: '' + - php-version: 8.4 + os: ubuntu-latest + composer-options: '--ignore-platform-req=php+' steps: - uses: actions/checkout@v4 - name: Install PHP @@ -48,8 +58,8 @@ jobs: extensions: memcached - name: "Composer install" run: | - composer install --ignore-platform-reqs - composer require doctrine/cache ~1.2 --ignore-platform-reqs + composer install ${{ matrix.composer-options }} + composer require doctrine/cache ~1.2 ${{ matrix.composer-options }} - name: PHPUnit / PHP ${{ matrix.php-version }} run: | php -v