Make WordPress Core


Ignore:
Timestamp:
03/02/2021 07:57:15 PM (2 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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:
Note: See TracChangeset for help on using the changeset viewer.