From 64bb4314b23b3ab1284143b276f8eeca08c24429 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Tue, 17 Mar 2026 22:31:39 -0400 Subject: [PATCH] Improvements to path filtering. This makes several improvements to path filtering within GitHub Actions workflows. --- .github/workflows/check-built-files.yml | 3 +++ .github/workflows/end-to-end-tests.yml | 2 ++ .github/workflows/javascript-tests.yml | 2 ++ .github/workflows/javascript-type-checking.yml | 1 + .github/workflows/local-docker-environment.yml | 2 ++ .github/workflows/performance.yml | 2 ++ .github/workflows/test-build-processes.yml | 2 ++ 7 files changed, 14 insertions(+) diff --git a/.github/workflows/check-built-files.yml b/.github/workflows/check-built-files.yml index 5f62f825c243e..01a239c4eb3b0 100644 --- a/.github/workflows/check-built-files.yml +++ b/.github/workflows/check-built-files.yml @@ -23,11 +23,14 @@ on: - '.nvmrc' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' # These files configure Composer. Changes could affect the outcome. - 'composer.*' # Confirm any changes to relevant workflow files. - '.github/workflows/check-built-files.yml' + - '.github/workflows/reusable-check-built-files.yml' # Changes to the default themes should be handled by the themes workflows. - '!src/wp-content/themes/twenty**' diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 4e4bed002f95b..b397a2241947e 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -28,6 +28,8 @@ on: - '.nvmrc' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' # These files configure Composer. Changes could affect the outcome. - 'composer.*' diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index ec23fdfefa54d..4ebb1fd17b499 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -26,6 +26,8 @@ on: - '.nvmrc' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' # This file configures ESLint. Changes could affect the outcome. - '.eslintignore' diff --git a/.github/workflows/javascript-type-checking.yml b/.github/workflows/javascript-type-checking.yml index 9dbc33bfb067f..b8a10da5465bd 100644 --- a/.github/workflows/javascript-type-checking.yml +++ b/.github/workflows/javascript-type-checking.yml @@ -21,6 +21,7 @@ on: # These files configure npm. Changes could affect the outcome. - 'package*.json' - '.nvmrc' + - '.npmrc' # This file configures TypeScript. Changes could affect the outcome. - 'tsconfig.json' # This directory contains TypeScript definitions. Changes could affect the outcome. diff --git a/.github/workflows/local-docker-environment.yml b/.github/workflows/local-docker-environment.yml index 5ddb5f5d6fe57..8d4b3581feec0 100644 --- a/.github/workflows/local-docker-environment.yml +++ b/.github/workflows/local-docker-environment.yml @@ -17,6 +17,8 @@ on: - 'package*.json' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' - '.npmrc' - '.nvmrc' diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 636dce5db56ef..d9be2c8842ec4 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -28,6 +28,8 @@ on: - '.nvmrc' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' # These files configure Composer. Changes could affect the outcome. - 'composer.*' diff --git a/.github/workflows/test-build-processes.yml b/.github/workflows/test-build-processes.yml index 150c36ef0893c..184f85a323993 100644 --- a/.github/workflows/test-build-processes.yml +++ b/.github/workflows/test-build-processes.yml @@ -26,6 +26,8 @@ on: - '.nvmrc' - 'Gruntfile.js' - 'webpack.config.js' + - 'tools/gutenberg/**' + - 'tools/vendors/**' - 'tools/webpack/**' # These files configure Composer. Changes could affect the outcome. - 'composer.*'