File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,15 +41,38 @@ jobs:
4141 run : |
4242 npx playwright install chromium firefox webkit --with-deps
4343
44- - name : Install WordPress and start the server
44+ - name : Checkout Playground repository
45+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
46+ with :
47+ repository : WordPress/wordpress-playground
48+ path : playground
49+
50+ - name : Setup Playground and start the server
4551 run : |
46- npm run wp-env start
52+ # Install Bun
53+ curl -fsSL https://bun.sh/install | bash # install bun
54+
55+ # Install the dependencies
56+ cd playground
57+ npm install
58+
59+ # Start the server
60+ ~/.bun/bin/bun packages/playground/cli/src/cli.ts server \
61+ --wp=6.5 \
62+ --mount=../:/wordpress/wp-content/plugins/gutenberg \
63+ --mount=../test/gutenberg-test-themes:/wordpress/wp-content/themes/gutenberg-test-themes \
64+ --mount=../packages/e2e-tests/mu-plugins:/wordpress/wp-content/mu-plugins \
65+ --mount=../packages/e2e-tests/plugins:/wordpress/wp-content/plugins/gutenberg-test-plugins \
66+ --blueprint=../test/e2e/playground.blueprint.json \
67+ &
4768
4869 - name : Run the tests
4970 env :
5071 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
5172 run : |
52- xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:e2e -- --shard=${{ matrix.part }}/${{ matrix.totalParts }}
73+ WP_BASE_URL=http://127.0.0.1:9400/ \
74+ xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- \
75+ npm run test:e2e -- --shard=${{ matrix.part }}/${{ matrix.totalParts }}
5376
5477 - name : Archive debug artifacts (screenshots, traces)
5578 uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
You can’t perform that action at this time.
0 commit comments