-
Notifications
You must be signed in to change notification settings - Fork 376
Open
Description
Choosing WordPress and PHP version for a plugin demo is tricky. On one hand, you want to use the latest versions so that your demo auto-updates with the WordPress and PHP release cycle. On the other, the new version may not play well with the plugin.
Let's solve that at the Blueprint schema level by introducing a testedWith key:
{
"preferredVersions": {
"php": "8.2",
"wp": "latest"
},
"testedWith": {
"php": "8.0",
"wp": "6.7"
},
"steps": [
// ...
]
}In this scenario, Playground would try to run the Blueprint with the latest WordPress and PHP 8.2. If that fails, it would fall back to WordPress 6.7 and PHP 8.0, since that combination is known to work well.