[wp-trac] [WordPress Trac] #50401: Tests: Move tests into Github Actions
WordPress Trac
noreply at wordpress.org
Wed Dec 9 20:05:20 UTC 2020
#50401: Tests: Move tests into Github Actions
------------------------------+--------------------------
Reporter: whyisjake | Owner: desrosj
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 5.7
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
------------------------------+--------------------------
Comment (by desrosj):
In [changeset:"49781" 49781]:
{{{
#!CommitTicketReference repository="" revision="49781"
Build/Test Tools: Disable GitHub Action workflow runs triggered on `push`
for forks and mirrors.
In the current state, the workflows run regardless of the repository
context. This results many needless workflow runs that waste resources.
Workflow runs for private repositories are not free (accounts have a
finite allotment of minutes for private repositories). This becomes
problematic in private repositories that also mirror the WordPress develop
repository, as any workflow runs will draw from a user’s or organization’s
allotted action minutes.
Without blanket disabling the workflow manually for all event triggers, or
modifying the workflow files in the forked/mirrored repository, there is
no way to tune when the workflows run.
This change introduces a conditional statement into all GitHub Action
workflows that prevents them from running on forked/mirrored repositories
that are not `wordpress-develop`, except when a pull request is being
submitted to that repository.
The exception to this is the Welcome workflow that posts a helpful message
to first time contributors to `wordpress-develop`. This message is
specific to this repository, so should only run when a PR is submitted to
that repository.
See #50401.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50401#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list