Skip to content

Commit f668b8d

Browse files
committed
Limit running PHP workflows to related PHP files
1 parent 95b4ec4 commit f668b8d

File tree

5 files changed

+40
-30
lines changed

5 files changed

+40
-30
lines changed

.github/workflows/test-deptrac.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
- 'develop'
99
- 'v4.*'
1010
paths:
11-
- 'app/**'
12-
- 'system/**'
11+
- 'app/**.php'
12+
- 'system/**.php'
1313
- 'composer.json'
1414
- 'depfile.yaml'
1515
- '.github/workflows/test-deptrac.yml'
@@ -18,8 +18,8 @@ on:
1818
- 'develop'
1919
- 'v4.*'
2020
paths:
21-
- 'app/**'
22-
- 'system/**'
21+
- 'app/**.php'
22+
- 'system/**.php'
2323
- 'composer.json'
2424
- 'depfile.yaml'
2525
- '.github/workflows/test-deptrac.yml'

.github/workflows/test-phpcpd.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ on:
88
- 'develop'
99
- 'v4.*'
1010
paths:
11-
- 'app/**'
12-
- 'public/**'
13-
- 'system/**'
11+
- 'app/**.php'
12+
- 'public/**.php'
13+
- 'system/**.php'
1414
- '.github/workflows/test-phpcpd.yml'
15+
1516
push:
1617
branches:
1718
- 'develop'
1819
- 'v4.*'
1920
paths:
20-
- 'app/**'
21-
- 'public/**'
22-
- 'system/**'
21+
- 'app/**.php'
22+
- 'public/**.php'
23+
- 'system/**.php'
2324
- '.github/workflows/test-phpcpd.yml'
2425

2526
jobs:

.github/workflows/test-phpstan.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,24 @@ on:
88
- 'develop'
99
- 'v4.*'
1010
paths:
11-
- 'app/**'
12-
- 'system/**'
11+
- 'app/**.php'
12+
- 'system/**.php'
13+
- 'utils/**.php'
1314
- composer.json
14-
- phpstan.neon.dist
15-
- phpstan-baseline.neon.dist
15+
- '**.neon.dist'
16+
- '.github/workflows/test-phpstan.yml'
17+
1618
push:
1719
branches:
1820
- 'develop'
1921
- 'v4.*'
2022
paths:
21-
- 'app/**'
22-
- 'system/**'
23+
- 'app/**.php'
24+
- 'system/**.php'
25+
- 'utils/**.php'
2326
- composer.json
24-
- phpstan.neon.dist
25-
- phpstan-baseline.neon.dist
27+
- '**.neon.dist'
28+
- '.github/workflows/test-phpstan.yml'
2629

2730
jobs:
2831
build:

.github/workflows/test-phpunit.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@ on:
55
branches:
66
- develop
77
paths:
8+
- 'app/**.php'
9+
- 'system/**.php'
10+
- 'tests/**.php'
11+
- 'spark'
812
- composer.json
9-
- spark
1013
- phpunit.xml.dist
11-
- '**.php'
1214
- .github/workflows/test-phpunit.yml
15+
1316
pull_request:
1417
branches:
1518
- develop
1619
- 'v4.*'
1720
paths:
21+
- 'app/**.php'
22+
- 'system/**.php'
23+
- 'tests/**.php'
24+
- 'spark'
1825
- composer.json
19-
- spark
2026
- phpunit.xml.dist
21-
- '**.php'
2227
- .github/workflows/test-phpunit.yml
2328

2429
jobs:

.github/workflows/test-rector.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ on:
88
- 'develop'
99
- 'v4.*'
1010
paths:
11-
- 'app/**'
12-
- 'system/**'
11+
- 'app/**.php'
12+
- 'system/**.php'
13+
- 'tests/**.php'
14+
- 'utils/**.php'
1315
- '.github/workflows/test-rector.yml'
1416
- composer.json
15-
- 'utils/Rector/**'
16-
- 'rector.php'
17+
1718
push:
1819
branches:
1920
- 'develop'
2021
- 'v4.*'
2122
paths:
22-
- 'app/**'
23-
- 'system/**'
23+
- 'app/**.php'
24+
- 'system/**.php'
25+
- 'tests/**.php'
26+
- 'utils/**.php'
2427
- '.github/workflows/test-rector.yml'
2528
- composer.json
26-
- 'utils/Rector/**'
27-
- 'rector.php'
2829

2930
jobs:
3031
build:

0 commit comments

Comments
 (0)