mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
⚙️ Enhance playground blueprint with optimized WordPress configuration
This commit is contained in:
parent
392bc75d6d
commit
8db2078d5a
1 changed files with 19 additions and 2 deletions
21
.github/scripts/playground-comment.js
vendored
21
.github/scripts/playground-comment.js
vendored
|
@ -1,13 +1,21 @@
|
||||||
const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => {
|
const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) => {
|
||||||
const defaultSchema = {
|
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: {
|
preferredVersions: {
|
||||||
php: '8.0',
|
php: '8.0',
|
||||||
wp: 'latest',
|
wp: 'latest',
|
||||||
},
|
},
|
||||||
|
|
||||||
phpExtensionBundles: ['kitchen-sink'],
|
phpExtensionBundles: ['kitchen-sink'],
|
||||||
features: { networking: true },
|
|
||||||
|
// Enable networking for API calls and external connections
|
||||||
|
features: {
|
||||||
|
networking: true
|
||||||
|
},
|
||||||
|
|
||||||
steps: [
|
steps: [
|
||||||
|
// Step 1: Install and activate WooCommerce
|
||||||
{
|
{
|
||||||
step: 'installPlugin',
|
step: 'installPlugin',
|
||||||
pluginData: {
|
pluginData: {
|
||||||
|
@ -18,6 +26,8 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) =>
|
||||||
activate: true
|
activate: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Step 2: Install PayPal Payments plugin from PR artifact
|
||||||
{
|
{
|
||||||
step: 'installPlugin',
|
step: 'installPlugin',
|
||||||
pluginZipFile: {
|
pluginZipFile: {
|
||||||
|
@ -28,6 +38,8 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) =>
|
||||||
activate: true,
|
activate: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Step 3: Skip WooCommerce onboarding wizard
|
||||||
{
|
{
|
||||||
step: 'setSiteOptions',
|
step: 'setSiteOptions',
|
||||||
options: {
|
options: {
|
||||||
|
@ -36,14 +48,19 @@ const generateWordpressPlaygroundBlueprint = (runId, prNumber, artifactName) =>
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Step 4: Set up admin user login
|
||||||
{
|
{
|
||||||
step: 'login',
|
step: 'login',
|
||||||
username: 'admin',
|
username: 'admin',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
// Initialize empty plugins array (can be extended later)
|
||||||
plugins: [],
|
plugins: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
return defaultSchema;
|
return defaultSchema;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue