Make WordPress Core

Changeset 50432


Ignore:
Timestamp:
02/24/2021 07:34:41 PM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Limit when GitHub Action workflows run on pull_request.

Different branches have support for different types of testing based on the tooling that was in place at the time each version was branched. The workflows currently in place have patterns configured to match the relevant branches and tags for each workflow, but only for push events.

This copies the patterns for matching supported branches over to the pull_request event to prevent workflows from running for a pull request to a branch that does not support that workflow.

Fixes #52643.

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

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r50387 r50432  
    22
    33on:
     4  # JSHint was introduced in WordPress 3.8.
     5  # PHPCS checking was introduced in WordPress 5.1.
    46  push:
    57    branches:
    68      - master
    7       # JSHint was introduced in WordPress 3.8.
    8       # PHPCS checking was introduced in WordPress 5.1.
    99      - '3.[89]'
    1010      - '[4-9].[0-9]'
     
    1313      - '[4-9].[0-9]*'
    1414  pull_request:
     15    branches:
     16      - master
     17      - '3.[89]'
     18      - '[4-9].[0-9]'
    1519
    1620jobs:
  • trunk/.github/workflows/end-to-end-tests.yml

    r50387 r50432  
    22
    33on:
     4  # The end to end test suite was introduced in WordPress 5.3.
    45  push:
    56    branches:
    67      - master
    7       # The end to end test suite was introduced in WordPress 5.3.
    88      - '5.[3-9]'
    99      - '[6-9].[0-9]'
     
    1212      - '[6-9].[0-9]*'
    1313  pull_request:
     14    branches:
     15      - master
     16      - '5.[3-9]'
     17      - '[6-9].[0-9]'
    1418
    1519env:
  • trunk/.github/workflows/javascript-tests.yml

    r50387 r50432  
    22
    33on:
     4  # JavaScript testing was introduced in WordPress 3.8.
    45  push:
    56    branches:
    67      - master
    7       # JavaScript testing was introduced in WordPress 3.8.
    88      - '3.[89]'
    99      - '[4-9].[0-9]'
     
    1212      - '[4-9].[0-9]*'
    1313  pull_request:
     14    branches:
     15      - master
     16      - '3.[89]'
     17      - '[4-9].[0-9]'
    1418
    1519jobs:
  • trunk/.github/workflows/php-compatibility.yml

    r50298 r50432  
    22
    33on:
     4  # PHP compatibility testing was introduced in WordPress 5.5.
    45  push:
    56    branches:
    67      - master
    7       # The PHP compatibility testing was introduced in WordPress 5.5.
    88      - '5.[5-9]'
    99      - '[6-9].[0-9]'
     
    1212      - '[6-9].[0-9]*'
    1313  pull_request:
     14    branches:
     15      - master
     16      - '5.[5-9]'
     17      - '[6-9].[0-9]'
    1418
    1519jobs:
  • trunk/.github/workflows/phpunit-tests.yml

    r50413 r50432  
    1111      - '[4-9].[0-9]*'
    1212  pull_request:
     13    branches:
     14      - master
     15      - '3.[7-9]'
     16      - '[4-9].[0-9]'
    1317  # Once weekly On Sundays at 00:00 UTC.
    1418  schedule:
  • trunk/.github/workflows/verify-npm-on-windows.yml

    r50387 r50432  
    88      - '[4-9].[0-9]'
    99  pull_request:
     10    branches:
     11      - master
     12      - '3.[7-9]'
     13      - '[4-9].[0-9]'
    1014
    1115env:
Note: See TracChangeset for help on using the changeset viewer.