Make WordPress Core

Changeset 59252


Ignore:
Timestamp:
10/18/2024 02:00:27 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Refine paths filter for workflows.

Some GitHub Action workflows use the paths filter to limit when workflows run for pull requests. This helps avoid running workflows unnecessarily when the pull request does not change any relevant code.

Currently, a few of these workflows are configured to run when any .yml file in the .github/workflows/ directory is changed. This updates those workflows to target more specific workflow files for more efficient running.

See #61564.

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

Legend:

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

    r58165 r59252  
    3030      # This file configures PHPCS. Changes could affect the outcome.
    3131      - 'phpcs.xml.dist'
    32       # Changes to workflow files should always verify all workflows are successful.
    33       - '.github/workflows/*.yml'
     32      # Confirm any changes to relevant workflow files.
     33      - '.github/workflows/coding-standards.yml'
     34      - '.github/workflows/reusable-coding-standards-*.yml'
    3435  workflow_dispatch:
    3536
  • trunk/.github/workflows/javascript-tests.yml

    r58165 r59252  
    2828      # Any change to the QUnit directory should run tests.
    2929      - 'tests/qunit/**'
    30       # Changes to workflow files should always verify all workflows are successful.
    31       - '.github/workflows/*.yml'
     30      # Confirm any changes to relevant workflow files.
     31      - '.github/workflows/javascript-tests.yml'
     32      - '.github/workflows/reusable-javascript-tests.yml'
    3233  workflow_dispatch:
    3334
  • trunk/.github/workflows/php-compatibility.yml

    r58165 r59252  
    2525      # This file configures PHP compatibility scanning. Changes could affect the outcome.
    2626      - 'phpcompat.xml.dist'
    27       # Changes to workflow files should always verify all workflows are successful.
    28       - '.github/workflows/*.yml'
     27      # Confirm any changes to relevant workflow files.
     28      - '.github/workflows/php-compatibility.yml'
     29      - '.github/workflows/reusable-php-compatibility.yml'
    2930  workflow_dispatch:
    3031
  • trunk/.github/workflows/test-old-branches.yml

    r58754 r59252  
    88    paths:
    99      - '.github/workflows/test-old-branches.yml'
    10       - '.github/workflows/reusable-phpunit-tests-v1.yml'
    11       - '.github/workflows/reusable-phpunit-tests-v2.yml'
     10      - '.github/workflows/reusable-phpunit-tests-v[0-9]+.yml'
    1211  # Run twice a month on the 1st and 15th at 00:00 UTC.
    1312  schedule:
Note: See TracChangeset for help on using the changeset viewer.