Make WordPress Core


Ignore:
Timestamp:
05/17/2024 05:41:40 PM (14 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 moved

Legend:

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

    r58164 r58165  
    11##
    2 # A callable workflow that tests the WordPress Core build process.
     2# A reusable workflow that tests the WordPress Core build process.
    33##
    44name: Test the WordPress Build Process
     
    1717        type: 'string'
    1818        default: 'src'
     19      test-emoji:
     20        description: 'Whether to run the grunt precommit:emoji script.'
     21        required: false
     22        type: 'boolean'
     23        default: true
    1924
    2025env:
     
    6368
    6469      - name: Run Emoji precommit task
     70        if: ${{ inputs.test-emoji }}
    6571        run: npm run grunt precommit:emoji
    6672        env:
Note: See TracChangeset for help on using the changeset viewer.