Skip to content

Commit e062f66

Browse files
committed
Build/Test Tools: Ensure a change to the Node version always runs relevant test workflows.
Props johnbillion, desrosj See #63170 git-svn-id: https://develop.svn.wordpress.org/trunk@60625 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9a62127 commit e062f66

9 files changed

+22
-2
lines changed

.github/workflows/check-built-files.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
- '**.sass'
2020
# These files configure npm and the task runner. Changes could affect the outcome.
2121
- 'package*.json'
22+
- '.npmrc'
23+
- '.nvmrc'
2224
- 'Gruntfile.js'
2325
- 'webpack.config.js'
2426
- 'tools/webpack/**'

.github/workflows/coding-standards.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
- '**.php'
2424
# These files configure npm. Changes could affect the outcome.
2525
- 'package*.json'
26+
- '.npmrc'
27+
- '.nvmrc'
2628
# These files configure Composer. Changes could affect the outcome.
2729
- 'composer.*'
2830
# This file configures JSHint. Changes could affect the outcome.

.github/workflows/end-to-end-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424
- '**.php'
2525
# These files configure npm and the task runner. Changes could affect the outcome.
2626
- 'package*.json'
27+
- '.npmrc'
28+
- '.nvmrc'
2729
- 'Gruntfile.js'
2830
- 'webpack.config.js'
2931
- 'tools/webpack/**'

.github/workflows/javascript-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ on:
2121
- '**.js'
2222
# These files configure npm and the task runner. Changes could affect the outcome.
2323
- 'package*.json'
24+
- '.npmrc'
25+
- '.nvmrc'
2426
- 'Gruntfile.js'
2527
- 'webpack.config.js'
2628
- 'tools/webpack/**'

.github/workflows/local-docker-environment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ on:
1717
- 'Gruntfile.js'
1818
- 'webpack.config.js'
1919
- 'tools/webpack/**'
20+
- '.npmrc'
21+
- '.nvmrc'
2022
# These files configure Composer. Changes could affect the local environment.
2123
- 'composer.*'
2224
# These files define the versions to test.
@@ -41,6 +43,8 @@ on:
4143
- 'Gruntfile.js'
4244
- 'webpack.config.js'
4345
- 'tools/webpack/**'
46+
- '.npmrc'
47+
- '.nvmrc'
4448
# These files configure Composer. Changes could affect the local environment.
4549
- 'composer.*'
4650
# These files define the versions to test.

.github/workflows/performance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ on:
2323
- '**.php'
2424
# These files configure npm and the task runner. Changes could affect the outcome.
2525
- 'package*.json'
26+
- '.npmrc'
27+
- '.nvmrc'
2628
- 'Gruntfile.js'
2729
- 'webpack.config.js'
2830
- 'tools/webpack/**'

.github/workflows/phpunit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ on:
2525
- 'src/SECURITY.md'
2626
# These files configure npm and the task runner. Changes could affect the outcome.
2727
- 'package*.json'
28+
- '.npmrc'
29+
- '.nvmrc'
2830
- 'Gruntfile.js'
2931
# These files configure Composer. Changes could affect the outcome.
3032
- 'composer.*'

.github/workflows/test-and-zip-default-themes.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- '[4-9].[0-9]'
99
paths:
1010
# Changing the preferred version of Node.js could affect themes with build processes.
11-
- '.nvm'
11+
- '.npmrc'
12+
- '.nvmrc'
1213
# Changes to any themes with a build script should be confirmed.
1314
- 'src/wp-content/themes/twentynineteen/**'
1415
- 'src/wp-content/themes/twentytwenty/**'
@@ -22,7 +23,8 @@ on:
2223
- '[4-9].[0-9]'
2324
paths:
2425
# Changing the preferred version of Node.js could affect themes with build processes.
25-
- '.nvm'
26+
- '.npmrc'
27+
- '.nvmrc'
2628
# Changes to any themes with a build script should be confirmed.
2729
- 'src/wp-content/themes/twentynineteen/**'
2830
- 'src/wp-content/themes/twentytwenty/**'

.github/workflows/test-build-processes.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ on:
2222
- '**.php'
2323
# These files configure npm and the task runner. Changes could affect the outcome.
2424
- 'package*.json'
25+
- '.npmrc'
26+
- '.nvmrc'
2527
- 'Gruntfile.js'
2628
- 'webpack.config.js'
2729
- 'tools/webpack/**'

0 commit comments

Comments
 (0)