From c9fa9430d6a72ecae10a095af2be9cd6b295d263 Mon Sep 17 00:00:00 2001 From: bepsvpt <8221099+bepsvpt@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:57:51 +0800 Subject: [PATCH] chore: run tests on more versions --- .github/workflows/testing.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index fbdb686..d171c1e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -71,9 +71,9 @@ jobs: - { php: '8.0', wordpress: '5.3' } - { php: '8.0', wordpress: '5.4' } - { php: '8.0', wordpress: '5.5' } - - { php: '8.0', wordpress: '5.6' } - - { php: '8.0', wordpress: '5.7' } - - { php: '8.0', wordpress: '5.8' } +# - { php: '8.0', wordpress: '5.6' } +# - { php: '8.0', wordpress: '5.7' } +# - { php: '8.0', wordpress: '5.8' } - { php: '8.1', wordpress: '5.0' } - { php: '8.1', wordpress: '5.1' } - { php: '8.1', wordpress: '5.2' } @@ -143,15 +143,19 @@ jobs: if: ${{ matrix.wordpress <= '5.0' }} run: composer require phpunit/phpunit:~6.5 --dev --no-update - - name: Set PHPUnit for WordPress 5.1 ~ 5.8 - if: ${{ matrix.wordpress >= '5.1' && matrix.wordpress <= '5.8' }} + - name: Set PHPUnit for WordPress 5.1 ~ 5.8 (PHP < 8.0) + if: ${{ matrix.wordpress >= '5.1' && matrix.wordpress <= '5.8' && matrix.php < '8.0' }} run: composer require phpunit/phpunit:~7.5 --dev --no-update - - name: Set PHPUnit for WordPress 5.9 ~ 6.4 + - name: Set PHPUnit for WordPress 5.6 ~ 5.8 (PHP >= 8.0) + if: ${{ matrix.wordpress >= '5.6' && matrix.wordpress <= '5.8' && matrix.php >= '8.0' }} + run: composer require phpunit/phpunit:~8.5 --dev --no-update + + - name: Set PHPUnit for WordPress 5.9 ~ 6.4 (PHP <= 7.2) if: ${{ matrix.wordpress >= '5.9' && matrix.php <= '7.2' }} run: composer require phpunit/phpunit:~8.5 --dev --no-update - - name: Set PHPUnit for WordPress 5.9 ~ 6.4 + - name: Set PHPUnit for WordPress 5.9 ~ 6.4 (PHP >= 7.3) if: ${{ matrix.wordpress >= '5.9' && matrix.php >= '7.3' }} run: composer require phpunit/phpunit:~9.5 --dev --no-update