Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
b67ad2b
try running on other operating systems
swissspidy Oct 2, 2025
ae12662
fixes
swissspidy Oct 2, 2025
761156f
fixes
swissspidy Oct 2, 2025
d8d8eb5
change title
swissspidy Oct 2, 2025
a6c2900
unique by os
swissspidy Oct 2, 2025
ffcdfa1
conditional apt-get
swissspidy Oct 2, 2025
8fef07e
more fixes
swissspidy Oct 2, 2025
3ba9f22
undo string change
swissspidy Oct 2, 2025
981a8ea
Get db version only when needed
swissspidy Oct 2, 2025
d1e8aea
set env var like the others
swissspidy Oct 2, 2025
035a655
use string instead of array
swissspidy Oct 2, 2025
2f6fdb8
pass behat args via step env
swissspidy Oct 3, 2025
cb7887f
Set `WP_CLI_TEST_DBTYPE` for unit tests
swissspidy Oct 3, 2025
ac42de1
No colors on CI
swissspidy Oct 3, 2025
7dc5676
Set db env vars at job level
swissspidy Oct 3, 2025
e368b26
Add output buffer to avoid unexpected output
swissspidy Oct 3, 2025
c20a32c
Add `WP_CLI_TEST_DBTYPE` conditional
swissspidy Oct 3, 2025
04fd1a2
try realpath to see if it helps
swissspidy Oct 3, 2025
8655f8a
Use `curl.exe`
swissspidy Oct 3, 2025
fc0c676
Use `del`
swissspidy Oct 3, 2025
63da4e8
lint fix
swissspidy Oct 3, 2025
98b1583
Use `copy` on windows
swissspidy Oct 3, 2025
a2befaf
Use `mysql.exe`
swissspidy Oct 3, 2025
497c7a7
force del
swissspidy Oct 3, 2025
67bd754
fix copy
swissspidy Oct 3, 2025
d0fb2d2
Use `runner.debug`
swissspidy Oct 3, 2025
30d5882
always pretty for testing
swissspidy Oct 3, 2025
0e3551b
`DIRECTORY_SEPARATOR` all the things
swissspidy Oct 3, 2025
e04fdfe
another realpath
swissspidy Oct 3, 2025
000bd3a
move statement
swissspidy Oct 3, 2025
988caa3
rewrite remove_dir and copy_dir
swissspidy Oct 3, 2025
f7b690f
Replace curl cli with `http_request`
swissspidy Oct 3, 2025
6bf0301
update phpunit config
swissspidy Oct 3, 2025
3456a02
remove method
swissspidy Oct 3, 2025
676c918
undo some changes
swissspidy Oct 3, 2025
d88296b
Cleanup
swissspidy Oct 3, 2025
8f41d68
Add custom matrix
swissspidy Oct 4, 2025
f7c67eb
Add back todo
swissspidy Oct 4, 2025
a071f36
use iterator
swissspidy Oct 4, 2025
d1aada2
Use `taskkill` on Windows
swissspidy Oct 10, 2025
94ba759
second attempt
swissspidy Oct 10, 2025
a3804a6
no grep
swissspidy Oct 10, 2025
4b71eb3
more ai fixes
swissspidy Oct 10, 2025
56c1086
undo color check
swissspidy Oct 12, 2025
4859f9d
Create `wp.bat` on Windows
swissspidy Oct 12, 2025
4dc4bac
Partial revert
swissspidy Oct 12, 2025
3ad0ed8
early return
swissspidy Oct 12, 2025
0a5ab90
Try Windows workaround for unit tests
swissspidy Oct 12, 2025
0f1f277
debugging
swissspidy Oct 12, 2025
a299ad2
DRY unit test
swissspidy Oct 12, 2025
b4a0372
No is_executable check on Windows
swissspidy Oct 12, 2025
2614802
avoid using `grep`
swissspidy Oct 12, 2025
c1be927
more debugging
swissspidy Oct 12, 2025
8182330
More AI fixes
swissspidy Oct 12, 2025
4e1559b
ai debugging
swissspidy Oct 12, 2025
dc0b005
use modified process class
swissspidy Oct 12, 2025
bc16f04
dbg
swissspidy Oct 12, 2025
6f1fdab
AI-suggested fix
swissspidy Oct 12, 2025
8da6b94
sub-process fixes
swissspidy Oct 12, 2025
dc3296a
AI fixes
swissspidy Oct 12, 2025
31285c8
adjust regex
swissspidy Oct 12, 2025
255fab4
Use predetermined mysql binary
swissspidy Oct 12, 2025
8b8f25e
Normalize line endings
swissspidy Oct 12, 2025
6ce7eef
Try behat fixes
swissspidy Oct 12, 2025
530491f
another phpunit attempt
swissspidy Oct 12, 2025
785372b
undo newline change
swissspidy Oct 12, 2025
c5ad367
dir sep
swissspidy Oct 12, 2025
fa97aa6
recursive remove dir
swissspidy Oct 12, 2025
1051290
debug step
swissspidy Oct 12, 2025
1b25dd8
More `DIRECTORY_SEPARATOR`
swissspidy Oct 12, 2025
ad84c65
Avoid using exclamation mark
swissspidy Oct 12, 2025
ae4aff8
Update assertion
swissspidy Oct 12, 2025
b7b0b5c
dir sep
swissspidy Oct 12, 2025
0056f0a
another one
swissspidy Oct 12, 2025
8534057
Try IPv4 resolution on Windows for Composer
swissspidy Oct 12, 2025
7156d96
update docblock
swissspidy Oct 12, 2025
a5cc4d1
Revert "Try IPv4 resolution on Windows for Composer"
swissspidy Oct 12, 2025
134e626
Revert "update docblock"
swissspidy Oct 12, 2025
b44d869
cleanup
swissspidy Oct 12, 2025
0b78aa0
add return type
swissspidy Oct 12, 2025
630f947
Use `main` branch again
swissspidy Oct 13, 2025
196eba3
Restore warning
swissspidy Oct 13, 2025
3805437
Merge branch 'main' into try/os
swissspidy Oct 14, 2025
7b92d18
Temporarily use different branch
swissspidy Oct 22, 2025
596dba3
Revert "Temporarily use different branch"
swissspidy Oct 22, 2025
bbc9046
Use wp-cli main branch
swissspidy Oct 22, 2025
630b4da
Update PHPStan config
swissspidy Oct 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,34 @@ on:
jobs:
test:
uses: wp-cli/.github/.github/workflows/reusable-testing.yml@main
with:
matrix: |
{
"include": [
{
"php": "8.4",
"wp": "latest",
"mysql": "mysql-8.0",
"os": "macos-15"
},
{
"php": "8.4",
"wp": "latest",
"dbtype": "sqlite",
"os": "macos-15"
},
{
"php": "8.4",
"wp": "latest",
"mysql": "mysql-8.0",
"os": "windows-2025"
},
{
"php": "8.4",
"wp": "latest",
"dbtype": "sqlite",
"os": "windows-2025"
}
],
"exclude": []
}
6 changes: 3 additions & 3 deletions bin/install-package-tests
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ is_numeric() {
*) return 0;; # returns 0 if numeric
esac
}
# Promt color vars.
C_RED="\033[31m"
C_BLUE="\033[34m"
# Prompt color vars.
C_RED="\033[0;31m"
C_BLUE="\033[0;34m"
NO_FORMAT="\033[0m"

HOST=localhost
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"wp-cli/config-command": "^1 || ^2",
"wp-cli/core-command": "^1 || ^2",
"wp-cli/eval-command": "^1 || ^2",
"wp-cli/wp-cli": "^2.12",
"wp-cli/wp-cli": "^2.13",
"wp-coding-standards/wpcs": "^3",
"yoast/phpunit-polyfills": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion features/steps.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Feature: Make sure "Given", "When", "Then" steps work as expected
Scenario: Special variables

When I run `echo {INVOKE_WP_CLI_WITH_PHP_ARGS-} cli info`
Then STDOUT should match /wp cli info/
Then STDOUT should match /(wp|wp\.bat) cli info/
And STDERR should be empty

When I run `echo {WP_VERSION-latest}`
Expand Down
4 changes: 4 additions & 0 deletions features/testing.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Feature: Test that WP-CLI loads.

Scenario: WP Cron is disabled by default
Given a WP install
And the wp-config.php file should contain:
"""
if ( defined( 'DISABLE_WP_CRON' ) === false ) { define( 'DISABLE_WP_CRON', true ); }
"""
And a test_cron.php file:
"""
<?php
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ parameters:
- WP_DEBUG_LOG
- WP_DEBUG_DISPLAY
ignoreErrors:
# Needs fixing in WP-CLI.
- message: '#Parameter \#1 \$cmd of function WP_CLI\\Utils\\esc_cmd expects array<string>#'
- message: '#Dynamic call to static method#'
path: 'tests/tests'
strictRules:
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
>
<testsuites>
<testsuite name="default">
<directory prefix="Spec" suffix=".php">tests/</directory>
<directory prefix="Test" suffix=".php">tests/tests</directory>
</testsuite>
</testsuites>
Expand Down
Loading
Loading