Skip to content

Commit

Permalink
Use php 8.0 for tools, test code on 8.0 and more
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahe committed Jun 13, 2024
1 parent ff4b005 commit 4be7dca
Show file tree
Hide file tree
Showing 4 changed files with 1,952 additions and 150 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
wp: [ '5.4', '5.5', '5.6', '5.7', '5.8', '5.9', '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', 'latest' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with WP ${{ matrix.wp }}
steps:
Expand All @@ -33,7 +33,7 @@ jobs:
tools: psalm, phpcbf, phpcs, phpunit:5.7.27

- name: Install all depenencies
run: composer install --ignore-platform-reqs
run: composer update

- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp }} true
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"type" : "wordpress-plugin",
"require" : {
"php": ">=5.6.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"composer/installers": "^1.10"
},
"require-dev": {
Expand All @@ -23,7 +23,10 @@
"vimeo/psalm": "^4.6",
"wp-coding-standards/wpcs": "^2.3",
"overtrue/phplint": "^2.3",
"wp-phpunit/wp-phpunit": "^6.4"
"wp-phpunit/wp-phpunit": "^6.4",
"yoast/phpunit-polyfills": "^1.0",
"phpspec/prophecy": "^1.19",
"phpspec/prophecy-phpunit": "^2.2"
},
"scripts": {
"cs": "./vendor/bin/phpcs",
Expand Down
Loading

0 comments on commit 4be7dca

Please sign in to comment.