Skip to content

Commit b2b9589

Browse files
committed
Increase the specificity of the path filtering for workflows.
1 parent 94cab03 commit b2b9589

8 files changed

Lines changed: 33 additions & 31 deletions

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ on:
1212
- '6.[8-9]'
1313
- '[7-9].[0-9]'
1414
paths:
15-
# Any change to a CSS, JavaScript, JSON, or SASS file should run checks.
16-
- '**.css'
17-
- '**.js'
18-
- '**.json'
19-
- '**.sass'
15+
# Any change to a source CSS, JavaScript, or JSON file should run checks.
16+
- 'src/**.css'
17+
- 'src/**.js'
18+
- 'src/**.json'
2019
# These files configure npm and the task runner. Changes could affect the outcome.
2120
- 'package*.json'
2221
- '.npmrc'

.github/workflows/coding-standards.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ on:
1818
- '3.[89]'
1919
- '[4-9].[0-9]'
2020
paths:
21-
# Any change to a PHP or JavaScript file should run checks.
22-
- '**.js'
23-
- '**.php'
21+
# Any change to a relevant PHP or JavaScript file should run checks.
22+
- 'src/**.js'
23+
- 'src/**.php'
24+
- 'tests/**.php'
2425
# These files configure npm. Changes could affect the outcome.
2526
- 'package*.json'
2627
- '.npmrc'

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ on:
1818
- '5.[3-9]'
1919
- '[6-9].[0-9]'
2020
paths:
21-
# Any change to a PHP, CSS, or JavaScript file should run checks.
22-
- '**.css'
23-
- '**.js'
24-
- '**.php'
21+
# Any change to a source PHP, CSS, JavaScript, or JSON file should run checks.
22+
- 'src/**.css'
23+
- 'src/**.js'
24+
- 'src/**.json'
25+
- 'src/**.php'
2526
# These files configure npm and the task runner. Changes could affect the outcome.
2627
- 'package*.json'
2728
- '.npmrc'

.github/workflows/javascript-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ on:
1717
- '3.[89]'
1818
- '[4-9].[0-9]'
1919
paths:
20-
# Any change to a JavaScript file should run tests.
21-
- '**.js'
20+
# Any change to a source JavaScript file should run tests.
21+
- 'src/**.js'
2222
# These files configure npm and the task runner. Changes could affect the outcome.
2323
- 'package*.json'
2424
- '.npmrc'

.github/workflows/performance.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ on:
1717
- '6.[2-9]'
1818
- '[7-9].[0-9]'
1919
paths:
20-
# Any change to a PHP, CSS, or JavaScript file should run checks.
21-
- '**.css'
22-
- '**.js'
23-
- '**.php'
20+
# Any change to a source PHP, CSS, JavaScript, or JSON file should run checks.
21+
- 'src/**.css'
22+
- 'src/**.js'
23+
- 'src/**.json'
24+
- 'src/**.php'
2425
# These files configure npm and the task runner. Changes could affect the outcome.
2526
- 'package*.json'
2627
- '.npmrc'

.github/workflows/php-compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ on:
1818
- '5.[5-9]'
1919
- '[6-9].[0-9]'
2020
paths:
21-
# This workflow only scans PHP files.
22-
- '**.php'
21+
# This workflow only scans source PHP files.
22+
- 'src/**.php'
2323
# These files configure Composer. Changes could affect the outcome.
2424
- 'composer.*'
2525
# This file configures PHP compatibility scanning. Changes could affect the outcome.

.github/workflows/phpunit-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
1515
- '3.[7-9]'
1616
- '[4-9].[0-9]'
1717
paths:
18-
# Any change to a PHP, CSS, JavaScript, JSON, HTML, or otherwise tested file should run checks.
19-
- '**.css'
20-
- '**.html'
21-
- '**.js'
22-
- '**.json'
23-
- '**.php'
18+
# Any change to a source PHP, CSS, JavaScript, JSON, HTML, or otherwise tested file should run checks.
19+
- 'src/**.css'
20+
- 'src/**.html'
21+
- 'src/**.js'
22+
- 'src/**.json'
23+
- 'src/**.php'
2424
- 'src/license.txt'
2525
- 'src/SECURITY.md'
2626
# These files configure npm and the task runner. Changes could affect the outcome.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ on:
1515
- '3.[7-9]'
1616
- '[4-9].[0-9]'
1717
paths:
18-
# Any change to a PHP, CSS, JavaScript, or JSON file should run checks.
19-
- '**.css'
20-
- '**.js'
21-
- '**.json'
22-
- '**.php'
18+
# Any change to a source PHP, CSS, JavaScript, or JSON file should run checks.
19+
- 'src/**.css'
20+
- 'src/**.js'
21+
- 'src/**.json'
22+
- 'src/**.php'
2323
# These files configure npm and the task runner. Changes could affect the outcome.
2424
- 'package*.json'
2525
- '.npmrc'

0 commit comments

Comments
 (0)