Make WordPress Core

Changeset 59220


Ignore:
Timestamp:
10/12/2024 01:14:12 PM (14 months ago)
Author:
desrosj
Message:

Build/Test Tools: Add input for Gutenberg version to E2E workflow.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-end-to-end-tests.yml

    r59208 r59220  
    2525        type: 'boolean'
    2626        default: true
     27      gutenberg-version:
     28        description: 'A specific version of Gutenberg to install.'
     29        required: false
     30        type: 'string'
    2731
    2832env:
     
    114118      - name: Install Gutenberg
    115119        if: ${{ inputs.install-gutenberg }}
    116         run: npm run env:cli -- plugin install gutenberg --path=/var/www/${{ env.LOCAL_DIR }}
     120        run: npm run env:cli -- plugin install gutenberg${{ inputs.gutenberg-version && format( ' --version={0}', inputs.gutenberg-version ) || '' }} --path=/var/www/${{ env.LOCAL_DIR }}
    117121
    118122      - name: Install additional languages
Note: See TracChangeset for help on using the changeset viewer.