Skip to content

Commit 3dc19f4

Browse files
committed
ci: switch to using composer script to install wordpress tests
1 parent dad4b3b commit 3dc19f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout source code
4848
uses: actions/checkout@v4
4949
- name: Install WordPress Test Suite
50-
run: bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true
50+
run: composer install-wp-tests
5151
- name: Install Composer dependencies
5252
run: composer install --prefer-dist --no-progress --no-suggest --no-dev
5353
- name: Run phpunit

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"phpcs": "phpcs --standard=phpcs.xml --extensions=php -s -d memory_limit=-1",
5050
"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",
5151
"phpstan": "phpstan analyse --memory-limit=-1",
52-
"install-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root '' localhost latest"
52+
"install-wp-tests": "bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true"
5353
},
5454
"require": {
5555
"php": ">=7.4",

0 commit comments

Comments
 (0)