Make WordPress Core


Ignore:
Timestamp:
05/17/2024 05:41:40 PM (21 months ago)
Author:
desrosj
Message:

Build/Test Tools: Convert GitHub action workflows into reusable ones.

With a few exceptions, GitHub Actions workflows run using the version of the workflow file present in the commit SHA or Git ref for the triggering event. This is useful for maintaining different versions of a workflow file.

In the case of WordPress where there are currently 25+ branches that could potentially receive a security fix, it creates a huge maintenance burden. When 3rd party actions are updated or features are deprecated on GitHub Actions, the required changes need to be backported to all of those branches. This takes considerable time and effort.

This change converts Core’s workflow files to reusable ones. This allows the same workflow to be used for all (or most) branches, allowing the described maintenance updates to be made once in trunk.

To keep track of which files are reusable vs. those that are responsible for holding the strategy matrix for that branch, reusable workflows are now prefixed with reusable-.

Props johnbillion, swissspidy, jorbin, desrosj.
Fixes #61213.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-build-processes.yml

    r57655 r58165  
    3232  test-core-build-process:
    3333    name: Core running from ${{ matrix.directory }}
    34     uses: WordPress/wordpress-develop/.github/workflows/callable-test-core-build-process.yml@trunk
     34    uses: WordPress/wordpress-develop/.github/workflows/reusable-test-core-build-process.yml@trunk
    3535    permissions:
    3636      contents: read
     
    5555  test-core-build-process-macos:
    5656    name: Core running from ${{ matrix.directory }}
    57     uses: WordPress/wordpress-develop/.github/workflows/callable-test-core-build-process.yml@trunk
     57    uses: WordPress/wordpress-develop/.github/workflows/reusable-test-core-build-process.yml@trunk
    5858    permissions:
    5959      contents: read
     
    7171  test-gutenberg-build-process:
    7272    name: Gutenberg running from ${{ matrix.directory }}
    73     uses: WordPress/wordpress-develop/.github/workflows/callable-test-gutenberg-build-process.yml@trunk
     73    uses: WordPress/wordpress-develop/.github/workflows/reusable-test-gutenberg-build-process.yml@trunk
    7474    permissions:
    7575      contents: read
     
    9494  test-gutenberg-build-process-macos:
    9595    name: Gutenberg running from ${{ matrix.directory }}
    96     uses: WordPress/wordpress-develop/.github/workflows/callable-test-gutenberg-build-process.yml@trunk
     96    uses: WordPress/wordpress-develop/.github/workflows/reusable-test-gutenberg-build-process.yml@trunk
    9797    permissions:
    9898      contents: read
Note: See TracChangeset for help on using the changeset viewer.