Skip to content

Commit

Permalink
Build/Test Tools: Add input for Gutenberg version to E2E workflow.
Browse files Browse the repository at this point in the history
The E2E test suite has some basic tests to confirm that the plugin can be activated without conflicts. This works great until the minimum version of WordPress required to run the plugin is raised. Old branches that attempt to run these tests that are newly incompatible with the latest version of the plugin will fail.

This change adds a `gutenberg-version` input to the E2E GitHub Action workflow to allow these tests to continue running with the last compatible version.

Props swissspidy.
See #61530.

git-svn-id: https://develop.svn.wordpress.org/trunk@59220 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
desrosj committed Oct 12, 2024
1 parent 3fcd5b7 commit 6e7acb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/reusable-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
required: false
type: 'boolean'
default: true
gutenberg-version:
description: 'A specific version of Gutenberg to install.'
required: false
type: 'string'

env:
LOCAL_DIR: build
Expand Down Expand Up @@ -113,7 +117,7 @@ jobs:

- name: Install Gutenberg
if: ${{ inputs.install-gutenberg }}
run: npm run env:cli -- plugin install gutenberg --path=/var/www/${{ env.LOCAL_DIR }}
run: npm run env:cli -- plugin install gutenberg${{ inputs.gutenberg-version && format( ' --version={0}', inputs.gutenberg-version ) || '' }} --path=/var/www/${{ env.LOCAL_DIR }}

- name: Install additional languages
run: |
Expand Down

0 comments on commit 6e7acb0

Please sign in to comment.