Skip to content

Commit 59023d1

Browse files
authored
Merge pull request #758 from Codeinwp/fix/retryable_errors
Fix/retryable errors
2 parents eaffadf + ca96146 commit 59023d1

File tree

11 files changed

+990
-1271
lines changed

11 files changed

+990
-1271
lines changed

.codeclimate.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/test-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP version
1515
uses: shivammathur/setup-php@v1
1616
with:
17-
php-version: '7.2'
17+
php-version: '8.0'
1818
extensions: simplexml
1919
- name: Checkout source code
2020
uses: actions/checkout@v2
@@ -78,7 +78,7 @@ jobs:
7878
- name: Setup PHP version
7979
uses: shivammathur/setup-php@v2
8080
with:
81-
php-version: '7.4'
81+
php-version: '8.0'
8282
extensions: simplexml, mysql
8383
- name: Checkout source code
8484
uses: actions/checkout@v2

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,18 @@
3636
}
3737
},
3838
"require-dev": {
39-
"phpmd/phpmd": "^2.6",
4039
"squizlabs/php_codesniffer": "^3.3",
4140
"wp-coding-standards/wpcs": "^2.3.0",
4241
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
43-
"yoast/phpunit-polyfills": "^1.0",
42+
"yoast/phpunit-polyfills": "^2.0",
4443
"phpstan/phpstan": "^1.10",
4544
"szepeviktor/phpstan-wordpress": "^1.3",
4645
"php-stubs/wp-cli-stubs": "^2.8"
4746
},
4847
"scripts": {
4948
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
5049
"phpcs": "phpcs --standard=phpcs.xml --extensions=php -s",
51-
"phpmd": "phpmd inc text phpmd.xml",
52-
"test": "phpunit --configuration=phpunit.xml",
50+
"test": "[ -z \"$WP_TESTS_DIR\" ] || [ -z \"$WP_CORE_DIR\" ] && echo 'Error: Both WP_TESTS_DIR and WP_CORE_DIR must be defined.' && exit 1 || phpunit --configuration=phpunit.xml",
5351
"lint": "composer run-script phpcs",
5452
"phpstan": "phpstan analyse --memory-limit 2G",
5553
"install-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root '' localhost latest"

0 commit comments

Comments
 (0)