Skip to content

Commit

Permalink
Updates versions of dev dependencies for PHP8.2 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruti Dugade authored and Kruti Dugade committed Aug 23, 2023
1 parent 0f6298c commit 1d12305
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 503 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/php-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
WP_TESTS_DIR: "/tmp/wordpress/tests/phpunit"
strategy:
matrix:
php: [7.4]
wp-version: [5.8, 5.9, latest]
php: [7.4, 8.0, 8.1, 8.2]
wp-version: [latest]
include:
- php: 8.0
wp-version: latest
- php: 7.4
wp-version: 5.9

steps:
- name: Checkout repository
Expand All @@ -51,9 +51,5 @@ jobs:
- name: Install WP tests
run: ./bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wp-version }}

- name: PHP8, PHPUnit9 with WordPress v5.9+
if: matrix.php >= 8
run: composer require phpunit/phpunit "^8" --dev --update-with-all-dependencies

- name: Run PHP unit tests
run: composer test-unit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.4",
"woocommerce/action-scheduler-job-framework": "2.0.0",
"composer/installers": "~1.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^v0.7",
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^8.5",
"wp-coding-standards/wpcs": "^2.3",
"yoast/phpunit-polyfills": "^1.0",
"yoast/phpunit-polyfills": "^2.0",
"wp-cli/i18n-command": "^2.2",
"woocommerce/woocommerce-sniffs": "^0.1.3"
},
Expand All @@ -34,7 +34,7 @@
},
"config": {
"platform": {
"php": "7.2"
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
Expand Down
Loading

0 comments on commit 1d12305

Please sign in to comment.