Skip to content

Commit

Permalink
Run e2e tests against Gutenberg plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Sep 28, 2024
1 parent 0a92a75 commit 94467d1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ jobs:
- wp: 'trunk'
shard: '4/4'
experimental: true
- wp: 'trunk'
gutenberg: true
shard: '1/4'
experimental: true
- wp: 'trunk'
gutenberg: true
shard: '2/4'
experimental: true
- wp: 'trunk'
gutenberg: true
shard: '3/4'
experimental: true
- wp: 'trunk'
gutenberg: true
shard: '4/4'
experimental: true

steps:
- name: Checkout
Expand Down Expand Up @@ -71,8 +87,14 @@ jobs:
chmod -R 767 ./
npm run wp-env start
if [[ $GUTENBERG != 'true' ]]; then
echo "Deactivating Gutenberg plugin"
npm run wp-env --silent -- run tests-cli wp plugin deactivate gutenberg
fi
env:
WP_VERSION: ${{ matrix.wp }}
GUTENBERG: ${{ matrix.gutenberg == 'true' }}

- name: Run tests
run: |
Expand Down
5 changes: 4 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"core": null,
"plugins": [ "." ],
"plugins": [
".",
"https://downloads.wordpress.org/plugin/gutenberg.latest-stable.zip"
],
"mappings": {
"wp-content/mu-plugins": "./tests/e2e/mu-plugins"
},
Expand Down

0 comments on commit 94467d1

Please sign in to comment.