WordPress.org

Make WordPress Core


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