Skip to content

Commit 86ad59e

Browse files
Re-enable Playground CLI tests (#2445)
## Motivation for the change, related issues The Playground CLI tests are currently disabled for two reasons: 1. The vitest config `includes` pattern is not matching any test files. 2. The run-cli tests are explicitly disabled because we struggled with properly resolving Worker URLs during test execution. ## Implementation details This PR: 1. Fixes the vitest config to find Playground CLI test modules. 2. Adjusts Worker URL resolution to work within vitest as well as for built and unbuilt Playground CLI execution. 3. Assumes a default `/wordpress` docroot during automount when there is no docroot defined. 4. Expands the Blueprints v1 schema to permit a Blueprints-v2-style runPhp step to fix automount code that used a single step for both Blueprint versions. ## Testing Instructions (or ideally a Blueprint) - CI
1 parent 8a2b490 commit 86ad59e

File tree

12 files changed

+1306
-908
lines changed

12 files changed

+1306
-908
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ jobs:
123123
MYSQL_DATABASE: test_db
124124
MYSQL_USER: user
125125
MYSQL_PASSWORD: password
126+
test-playground-cli:
127+
runs-on: ubuntu-latest
128+
needs: [lint-and-typecheck]
129+
steps:
130+
- uses: actions/checkout@v4
131+
with:
132+
submodules: true
133+
- uses: ./.github/actions/prepare-playground
134+
with:
135+
node-version: 22
136+
- run: node node_modules/nx/bin/nx affected --target=test-for-node-22-and-above
126137
test-e2e:
127138
runs-on: ubuntu-latest
128139
needs: [lint-and-typecheck]

0 commit comments

Comments
 (0)