Make WordPress Core

Changeset 63475


Ignore:
Timestamp:
09/04/2026 06:00:02 PM (2 months ago)
Author:
desrosj
Message:

Build/Test Tools: Support branch pinning when testing Gutenberg build scripts.

The reusable workflow responsible for testing the Gutenberg build script when cloned into the src/wp-content/plugins directory configures Node.js based on the .nvmrc file in this repository. However, this causes failures when that version is no longer compatible with the latest changes in the trunk branch of gutenberg.

The workflow is no longer used by new branches, but it’s still called by some old ones that use Node.js 20.x. When Gutenberg is updated to use 24.x in the coming days, the workflow runs for these old branches will fail because of this.

Additionally, the Gutenberg plugin has not suported these older versions of WordPress still running the workflow for some time. It only makes sense to test building gutenberg code that supports the version of WordPress running the tests.

This introduces a gutenberg-branch input so that the corresponding wp/X.Y branch from gutenberg can be pinned after a new version of WordPress is branched.

Props desrosj, lancewillett, lucatume.
Fixes #66040.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-test-gutenberg-build-process.yml

    r62742 r63475  
    1717        type: 'string'
    1818        default: 'src'
     19      gutenberg-branch:
     20        description: 'The branch in the Gutenberg repository that should be tested against.'
     21        required: false
     22        type: 'string'
     23        default: 'trunk'
    1924
    2025env:
    … …  
    5964        with:
    6065          repository: 'WordPress/gutenberg'
     66          ref: ${{ inputs.gutenberg-branch }}
    6167          path: ${{ env.GUTENBERG_DIRECTORY }}
    6268          show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
Note: See TracChangeset for help on using the changeset viewer.