Commit c137818740d for woocommerce

commit c137818740de38a434a8ba55090b7fef6b154d4f
Author: daledupreez <dale@automattic.com>
Date:   Fri Jun 19 19:28:29 2026 +0200

    Add basic CI configuration for woocommerce-subscriptions-engine (#65872)

    * Add basic CI configuration in woocommerce-subscriptions-engine/package.json
    * Add changelog
    * Ensure composer install is run via postinstall
    * Add changelog script

diff --git a/packages/php/woocommerce-subscriptions-engine/changelog/add-basic-ci-config-for-woocommerce-subscriptions-engine b/packages/php/woocommerce-subscriptions-engine/changelog/add-basic-ci-config-for-woocommerce-subscriptions-engine
new file mode 100644
index 00000000000..5a6598a69df
--- /dev/null
+++ b/packages/php/woocommerce-subscriptions-engine/changelog/add-basic-ci-config-for-woocommerce-subscriptions-engine
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+Add basic CI configuration
diff --git a/packages/php/woocommerce-subscriptions-engine/package.json b/packages/php/woocommerce-subscriptions-engine/package.json
index 19665133218..f28cee36760 100644
--- a/packages/php/woocommerce-subscriptions-engine/package.json
+++ b/packages/php/woocommerce-subscriptions-engine/package.json
@@ -7,10 +7,51 @@
 		"lint": "pnpm --if-present '/^lint:lang:.*$/'",
 		"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
 		"lint:fix:lang:php": "composer run-script phpcbf",
-		"lint:lang:php": "composer run-script phpcs"
+		"lint:lang:php": "composer run-script phpcs",
+		"test:php:ci": "pnpm test:php:unit && pnpm test:php:integration",
+		"test:php:unit": "composer run-script test:unit",
+		"test:php:integration": "composer run-script test:integration",
+		"env:test": "pnpm wp-env start --update",
+		"postinstall": "composer install"
 	},
 	"license": "GPL-2.0-or-later",
 	"devDependencies": {
 		"@wordpress/env": "11.0.1-next.v.20260206T143.0"
+	},
+	"config": {
+		"ci": {
+			"lint": {
+				"command": "lint",
+				"changes": [
+					"**/*.php",
+					"phpcs.xml"
+				]
+			},
+			"tests": [
+				{
+					"name": "PHP: 8.3 WP: latest",
+					"testType": "unit:php",
+					"command": "test:php:ci",
+					"changes": [
+						"composer.json",
+						"composer.lock",
+						"**/*.php",
+						"phpunit.xml",
+						".wp-env.json"
+					],
+					"testEnv": {
+						"start": "env:test",
+						"config": {
+							"phpVersion": "8.3",
+							"wpVersion": "latest"
+						}
+					},
+					"events": [
+						"pull_request",
+						"push"
+					]
+				}
+			]
+		}
 	}
 }