From 8db2078d5ab5ed38d165e35da4ddccca63f3f432 Mon Sep 17 00:00:00 2001 From: Daniel Dudzic Date: Thu, 31 Jul 2025 23:59:19 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Enhance=20playground=20blu?= =?UTF-8?q?eprint=20with=20optimized=20WordPress=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/scripts/playground-comment.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/scripts/playground-comment.js b/.github/scripts/playground-comment.js index 8f6bb4f75..62adf427e 100644 --- a/.github/scripts/playground-comment.js +++ b/.github/scripts/playground-comment.js @@ -1,13 +1,21 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => { const defaultSchema = { - landingPage: '/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway', + landingPage: '/wp-admin/admin.php?page=wc-settings&tab=advanced§ion=blueprint&activate-multi=true', + preferredVersions: { php: '8.0', wp: 'latest', }, + phpExtensionBundles: ['kitchen-sink'], - features: { networking: true }, + + // Enable networking for API calls and external connections + features: { + networking: true + }, + steps: [ + // Step 1: Install and activate WooCommerce { step: 'installPlugin', pluginData: { @@ -18,6 +26,8 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => activate: true } }, + + // Step 2: Install PayPal Payments plugin from PR artifact { step: 'installPlugin', pluginZipFile: { @@ -28,6 +38,8 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => activate: true, }, }, + + // Step 3: Skip WooCommerce onboarding wizard { step: 'setSiteOptions', options: { @@ -36,14 +48,19 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => }, }, }, + + // Step 4: Set up admin user login { step: 'login', username: 'admin', password: 'password', }, ], + + // Initialize empty plugins array (can be extended later) plugins: [], }; + return defaultSchema; };