Commit ac3a7977e6b for woocommerce
commit ac3a7977e6b96af887183457093a462ace428d79
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Wed Jul 8 22:07:04 2026 +0300
Fix plugin-check CI job to use the E2E env after wp-env config split (#66423)
diff --git a/plugins/woocommerce/changelog/wooplug-7014-fix-plugin-check-job-env b/plugins/woocommerce/changelog/wooplug-7014-fix-plugin-check-job-env
new file mode 100644
index 00000000000..533b810b93c
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-7014-fix-plugin-check-job-env
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Point the nightly/release 'Checks from plugin-check plugin' CI job at the full E2E wp-env config, which provisions the plugin-check plugin, so `wp plugin check` no longer fails as an unregistered subcommand after the wp-env test config split.
diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index 6f93d99570b..5eda4191427 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -104,7 +104,7 @@
"test:php:env": "sh ./client/blocks/bin/copy-blocks-json.sh && pnpm wp-env:test run --env-cwd='wp-content/plugins/woocommerce' cli vendor/bin/phpunit -c phpunit.xml --verbose",
"test:php:env:hpos-off": "sh ./client/blocks/bin/copy-blocks-json.sh && pnpm wp-env:test run --env-cwd='wp-content/plugins/woocommerce' cli env DISABLE_HPOS=1 vendor/bin/phpunit -c phpunit.xml --verbose",
"test:php:env:watch": "sh ./client/blocks/bin/copy-blocks-json.sh && pnpm wp-env:test run --env-cwd='wp-content/plugins/woocommerce' cli vendor/bin/phpunit-watcher watch --verbose",
- "test:plugincheck": "pnpm wp-env:test run cli wp plugin check ${PLUGIN_SLUG:-woocommerce}",
+ "test:plugincheck": "pnpm wp-env:e2e run cli wp plugin check ${PLUGIN_SLUG:-woocommerce}",
"test:unit": "pnpm test:php",
"test:unit:watch": "pnpm test:php:watch",
"test:unit:env": "pnpm test:php:env",
@@ -276,7 +276,7 @@
"optional": true,
"changes": [],
"testEnv": {
- "start": "env:test --debug"
+ "start": "env:e2e --debug"
},
"events": [
"nightly-checks",