Make WordPress Core

Changeset 50479 for trunk


Ignore:
Timestamp:
03/02/2021 07:57:15 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Add path detection when running GitHub Actions on pull_request.

This change adds a list of paths to check when determining which workflows to run on pull_request. This will prevent certain workflows from running unnecessarily when the files updated are not related to the tests and checks being performed.

Props peterwilsoncc, johnbillion.
Fixes #52667.

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

Legend:

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

    r50473 r50479  
    1919      - '3.[89]'
    2020      - '[4-9].[0-9]'
     21    paths:
     22      # Any change to a PHP or JavaScript file should run checks.
     23      - '**.js'
     24      - '**.php'
     25      # These files configure NPM. Changes could affect the outcome.
     26      - 'package*.json'
     27      # These files configure Composer. Changes could affect the outcome.
     28      - 'composer.*'
     29      # This file configures JSHint. Changes could affect the outcome.
     30      - '.jshintrc'
     31      # This file configures PHPCS. Changes could affect the outcome.
     32      - 'phpcs.xml.dist'
     33      # Changes to workflow files should always verify all workflows are successful.
     34      - '.github/workflows/*.yml'
    2135
    2236jobs:
  • trunk/.github/workflows/javascript-tests.yml

    r50476 r50479  
    1818      - '3.[89]'
    1919      - '[4-9].[0-9]'
     20    paths:
     21      # Any change to a JavaScript file should run tests.
     22      - '**.js'
     23      # These files configure NPM. Changes could affect the outcome.
     24      - 'package*.json'
     25      # This file configures ESLint. Changes could affect the outcome.
     26      - '.eslintignore'
     27      # This file configures JSHint. Changes could affect the outcome.
     28      - '.jshintrc'
     29      # Any change to the QUnit directory should run tests.
     30      - 'tests/qunit/**'
     31      # Changes to workflow files should always verify all workflows are successful.
     32      - '.github/workflows/*.yml'
    2033
    2134jobs:
  • trunk/.github/workflows/php-compatibility.yml

    r50473 r50479  
    1818      - '5.[5-9]'
    1919      - '[6-9].[0-9]'
     20    paths:
     21      # This workflow only scans PHP files.
     22      - '**.php'
     23      # These files configure Composer. Changes could affect the outcome.
     24      - 'composer.*'
     25      # This file configures PHP Compatibility scanning. Changes could affect the outcome.
     26      - 'phpcompat.xml.dist'
     27      # Changes to workflow files should always verify all workflows are successful.
     28      - '.github/workflows/*.yml'
    2029
    2130jobs:
  • trunk/.github/workflows/verify-npm-on-windows.yml

    r50476 r50479  
    1414      - '3.[7-9]'
    1515      - '[4-9].[0-9]'
     16    paths:
     17      # These files configure NPM. Changes could affect the outcome.
     18      - 'package*.json'
     19      # JavaScript files are built using NPM.
     20      - '**.js'
     21      # CSS and SCSS files are built using NPM.
     22      - '**.scss'
     23      - '**.css'
     24      # Changes to workflow files should always verify all workflows are successful.
     25      - '.github/workflows/**.yml'
    1626
    1727env:
Note: See TracChangeset for help on using the changeset viewer.