Skip to content

Commit

Permalink
ci: switch to using composer script to install wordpress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Sep 25, 2024
1 parent dad4b3b commit 3dc19f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3dc19f4

Please sign in to comment.