Make WordPress Core

Changeset 62891


Ignore:
Timestamp:
07/28/2026 10:06:30 PM (3 months ago)
Author:
lancewillett
Message:

Build/Test Tools: Allow the PHPUnit runner to be set by a repository variable.

Change runs-on in the reusable PHPUnit workflow to ${{ vars.PHPUNIT_RUNNER || inputs.os }}. With the variable unset (the default), jobs run exactly as before.

When a maintainer sets PHPUNIT_RUNNER to a runner label, the PHPUnit matrices run on that runner instead—useful for directing them to a dedicated runner during high-load release windows, without editing the workflow.

No input is added or made required, so every branch that calls this workflow at @trunk stays compatible.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/12745

Props barry.
Fixes #65749.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-phpunit-tests-v3.yml

    r62859 r62891  
    130130  phpunit-tests:
    131131    name: ${{ ( inputs.phpunit-test-groups || inputs.coverage-report ) && format( 'PHP {0} with ', inputs.php ) || '' }} ${{ 'mariadb' == inputs.db-type && 'MariaDB' || 'MySQL' }} ${{ inputs.db-version }}${{ inputs.multisite && ' multisite' || '' }}${{ inputs.db-innovation && ' (innovation release)' || '' }}${{ inputs.memcached && ' with memcached' || '' }}${{ inputs.report && ' (test reporting enabled)' || '' }} ${{ 'example.org' != inputs.tests-domain && inputs.tests-domain || '' }}
    132     runs-on: ${{ inputs.os }}
     132    runs-on: ${{ vars.PHPUNIT_RUNNER || inputs.os }}
    133133    timeout-minutes: ${{ inputs.coverage-report && 120 || inputs.php == '8.4' && 30 || 20 }}
    134134    permissions:
Note: See TracChangeset for help on using the changeset viewer.