Skip to content

Commit 101f6df

Browse files
chore: update wp supported version 3
1 parent b64eb3d commit 101f6df

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,16 @@ jobs:
6969
composer remove roots/wordpress-no-content inpsyde/php-coding-standards vimeo/psalm --dev --no-update
7070
composer require "roots/wordpress-no-content:~${{ matrix.wp-ver }}.0" --dev --no-update
7171
72+
- name: Remove modern dev tools for legacy PHP
73+
if: matrix.php-ver == '7.4' || matrix.php-ver == '8.0'
74+
run: |
75+
composer remove syde/phpcs vimeo/psalm --dev --no-update
76+
7277
- name: Install dependencies
7378
uses: ramsey/composer-install@v3
7479
with:
7580
dependency-versions: ${{ matrix.dependency-versions }}
76-
composer-options: >-
77-
${{
78-
(
79-
(matrix.php-ver == '7.4' || matrix.php-ver == '8.0')
80-
&& '--no-dev --ignore-platform-req=php'
81-
|| ''
82-
)
83-
}} ${{ matrix.composer || '' }}
81+
composer-options: ${{ matrix.composer || '' }}
8482

8583
- name: Run unit tests
8684
run: ./vendor/bin/phpunit --no-coverage

0 commit comments

Comments
 (0)