Skip to content

Commit b5c6d4c

Browse files
committed
use wp-cli as composer dependency
1 parent 0ff3abb commit b5c6d4c

4 files changed

Lines changed: 6578 additions & 3263 deletions

File tree

.github/workflows/phpunit.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
php-version: ${{ matrix.php_version }}
7878
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On
7979
coverage: none
80-
tools: wp-cli
8180

8281
# Install SVN.
8382
- name: Install SVN
@@ -102,23 +101,6 @@ jobs:
102101
shell: bash
103102
run: tests/bin/install-wp-tests.sh wordpress_tests root '' 127.0.0.1:3306 ${{ matrix.wp_version }}
104103

105-
- name: Symlink plugin into WordPress installation
106-
run: ln -s "$GITHUB_WORKSPACE" /tmp/wordpress/wp-content/plugins/progress-planner
107-
108-
- name: Create wp-config.php for WP-CLI tests
109-
run: |
110-
wp config create \
111-
--path=/tmp/wordpress \
112-
--dbname=wordpress_tests \
113-
--dbuser=root \
114-
--dbpass='' \
115-
--dbhost=127.0.0.1:3306 \
116-
--dbprefix=wptests_ \
117-
--skip-check
118-
119-
- name: Activate plugin for WP-CLI tests
120-
run: wp plugin activate progress-planner --path=/tmp/wordpress
121-
122104
- name: Run unit tests - single site
123105
run: composer test
124106

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"szepeviktor/phpstan-wordpress": "^2.0",
1919
"phpstan/extension-installer": "^1.4",
2020
"yoast/yoastcs": "^3.0",
21-
"friendsofphp/php-cs-fixer": "^3.75"
21+
"friendsofphp/php-cs-fixer": "^3.75",
22+
"wp-cli/wp-cli-bundle": "^2.11"
2223
},
2324
"suggest": {
2425
"ext-pcov": "Recommended for fast code coverage generation (5x faster than Xdebug)",

0 commit comments

Comments
 (0)