Make WordPress Core


Ignore:
Timestamp:
05/04/2022 12:38:18 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Pass GitHub Actions environment variables to the Docker container.

This ensures that WP_UnitTestCase::skipOnAutomatedBranches() has access to the GITHUB_REF and GITHUB_EVENT_NAME variables, so that some tests can be skipped when appropriate.

Additionally, account for renaming the master branch to trunk in November 2021.

Follow-up to [40241], [46999], [49264], [49267], [51868].

Fixes #55668.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/basic.php

    r53347 r53349  
    99
    1010    public function test_license() {
    11         // This test is designed to only run on trunk/master.
     11        // This test is designed to only run on trunk.
    1212        $this->skipOnAutomatedBranches();
    1313
     
    1919
    2020    public function test_security_md() {
    21         // This test is designed to only run on trunk/master.
     21        // This test is designed to only run on trunk.
    2222        $this->skipOnAutomatedBranches();
    2323
Note: See TracChangeset for help on using the changeset viewer.