From 3dc19f4af2d169160157a9fdeaabec7215f5d534 Mon Sep 17 00:00:00 2001 From: Carl Alexander Date: Wed, 25 Sep 2024 11:21:25 -0400 Subject: [PATCH] ci: switch to using composer script to install wordpress tests --- .github/workflows/test-php.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index c0847180..09af33b0 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -47,7 +47,7 @@ jobs: - name: Checkout source code uses: actions/checkout@v4 - name: Install WordPress Test Suite - run: bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true + run: composer install-wp-tests - name: Install Composer dependencies run: composer install --prefer-dist --no-progress --no-suggest --no-dev - name: Run phpunit diff --git a/composer.json b/composer.json index 725e89bb..a7fb159e 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ "phpcs": "phpcs --standard=phpcs.xml --extensions=php -s -d memory_limit=-1", "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", "phpstan": "phpstan analyse --memory-limit=-1", - "install-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root '' localhost latest" + "install-wp-tests": "bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true" }, "require": { "php": ">=7.4",