Make WordPress Core

Changeset 50673 for branches/5.5


Ignore:
Timestamp:
04/06/2021 03:26:05 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Prevent PHPUnit tests on push for forks/private mirrors.

The reorganization of the PHPUnit workflow in [50441] unintentionally caused the tests to be run for every push event, even for forks and private mirrors.

Previously, the second job required the first one to pass, and the conditional check on the first prevented both from running. Because the first job is no longer required for the second, both jobs must have the appropriate conditional check.

Merges [50670] to the 5.5 branch.
Fixes #52983.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/.github/workflows/phpunit-tests.yml

    r50603 r50673  
    7171    name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.split_slow && ' slow tests' || '' }} ${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }}
    7272    runs-on: ${{ matrix.os }}
     73    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    7374    strategy:
    7475      fail-fast: false
Note: See TracChangeset for help on using the changeset viewer.