Make WordPress Core

Changeset 63159


Ignore:
Timestamp:
08/07/2026 11:30:12 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Extend the PHPUnit runner variable to the v1 and v2 workflows.

This commit extends r62891 to the two older reusable PHPUnit workflows.

That change added the runs-on override to reusable-phpunit-tests-v3.yml alone, so only branches calling that workflow can be redirected.

Branches 4.7 through 5.1 call reusable-phpunit-tests-v1.yml, and branches 5.2 through 5.8 call reusable-phpunit-tests-v2.yml, both at @trunk. Neither reads the variable, so setting RUNNERS_NAME at the repository or organization level has no effect on those twelve branches.

This applies the same one-line change to both files. With the variable unset, jobs run on inputs.os exactly as before, so there is no change by default.

Each of the three reusable PHPUnit workflows contains exactly one runs-on, so no other line in these files needs the same treatment.

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

Follow-up to r62891, r62974, r63003.

Props lancewillett.
Fixes #65749.

Location:
trunk/.github/workflows
Files:
2 edited

Legend:

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

    r62742 r63159  
    8686  test-php:
    8787    name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
    88     runs-on: ${{ inputs.os }}
     88    runs-on: ${{ vars.RUNNERS_NAME || inputs.os }}
    8989    timeout-minutes: 20
    9090    permissions:
  • trunk/.github/workflows/reusable-phpunit-tests-v2.yml

    r62742 r63159  
    8888  test-php:
    8989    name: PHP ${{ inputs.php }} / ${{ inputs.multisite && ' Multisite' || 'Single Site' }}${{ inputs.split_slow && ' slow tests' || '' }}${{ inputs.memcached && ' with memcached' || '' }}
    90     runs-on: ${{ inputs.os }}
     90    runs-on: ${{ vars.RUNNERS_NAME || inputs.os }}
    9191    timeout-minutes: 20
    9292    permissions:
Note: See TracChangeset for help on using the changeset viewer.