Skip to content

Commit

Permalink
chore: run tests on more versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Nov 29, 2023
1 parent a846934 commit c9fa943
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c9fa943

Please sign in to comment.