mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-28 01:04:35 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
13
.github/workflows/javascript-tests.yml
vendored
13
.github/workflows/javascript-tests.yml
vendored
@@ -17,6 +17,19 @@ on:
|
||||
- trunk
|
||||
- '3.[89]'
|
||||
- '[4-9].[0-9]'
|
||||
paths:
|
||||
# Any change to a JavaScript file should run tests.
|
||||
- '**.js'
|
||||
# These files configure NPM. Changes could affect the outcome.
|
||||
- 'package*.json'
|
||||
# This file configures ESLint. Changes could affect the outcome.
|
||||
- '.eslintignore'
|
||||
# This file configures JSHint. Changes could affect the outcome.
|
||||
- '.jshintrc'
|
||||
# Any change to the QUnit directory should run tests.
|
||||
- 'tests/qunit/**'
|
||||
# Changes to workflow files should always verify all workflows are successful.
|
||||
- '.github/workflows/*.yml'
|
||||
|
||||
jobs:
|
||||
# Runs the QUnit tests for WordPress.
|
||||
|
||||
Reference in New Issue
Block a user