[wp-trac] [WordPress Trac] #52983: Prevent PHPUnit tests from running on `push` for forks and private mirrors
WordPress Trac
noreply at wordpress.org
Tue Apr 6 14:56:52 UTC 2021
#52983: Prevent PHPUnit tests from running on `push` for forks and private mirrors
------------------------------+-----------------------------
Reporter: desrosj | Owner: desrosj
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------------
In [50441], the PHPUnit workflow was updated to allow WordPress to be run
from `src`. The workflow was reorganized to take advantage of this change,
but it has resulted in unnecessary workflow runs on forks and private
mirrors.
Before [50441], the first job (which built and prepared WordPress for
testing) was required to complete before the second one (that performed
all the actual testing) could take place. Because the first job now only
cancels incomplete workflow runs in pull requests, the testing job runs
always.
This can be fixed with an `if:` statement to ensure the jobs only run in
the correct context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52983>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list