Skip to content

Commit 37a3301

Browse files
ksroda-saclaude
andcommitted
chore(ci): narrow workflow path filters to per-framework subtrees
Previously every workflow triggered on `samples/**`, so a bump in one framework rebuilt every other framework's matrix. Path filters now match only the framework each workflow tests: - test-android: samples/react-native/** + samples/android/** - test-java: samples/java/** - test-dotnet: samples/dotnet/** - test-js: samples/{react,angular,vue,node,react-native}/** Each workflow also re-triggers when its own file changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fe500ed commit 37a3301

4 files changed

Lines changed: 24 additions & 12 deletions

File tree

.github/workflows/test-android.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ name: Test Android Builds
33
on:
44
push:
55
paths:
6-
- "samples/**/android/**"
7-
- "samples/**/package.json"
8-
- "samples/**/yarn.lock"
6+
- "samples/react-native/**"
7+
- "samples/android/**"
98
- ".github/workflows/test-android.yml"
109
pull_request:
1110
paths:
12-
- "samples/**/android/**"
13-
- "samples/**/package.json"
14-
- "samples/**/yarn.lock"
11+
- "samples/react-native/**"
12+
- "samples/android/**"
1513
- ".github/workflows/test-android.yml"
1614
schedule:
1715
- cron: "0 9 * * 1"

.github/workflows/test-dotnet.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: Test .NET Frameworks
33
on:
44
push:
55
paths:
6-
- "samples/**"
6+
- "samples/dotnet/**"
7+
- ".github/workflows/test-dotnet.yml"
78
pull_request:
89
paths:
9-
- "samples/**"
10+
- "samples/dotnet/**"
11+
- ".github/workflows/test-dotnet.yml"
1012
schedule:
1113
- cron: "0 8 * * 1"
1214
workflow_dispatch:

.github/workflows/test-java.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: Test Java Frameworks
33
on:
44
push:
55
paths:
6-
- "samples/**"
6+
- "samples/java/**"
7+
- ".github/workflows/test-java.yml"
78
pull_request:
89
paths:
9-
- "samples/**"
10+
- "samples/java/**"
11+
- ".github/workflows/test-java.yml"
1012
schedule:
1113
- cron: "0 8 * * 1"
1214
workflow_dispatch:

.github/workflows/test-js.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ name: Test JS Frameworks
33
on:
44
push:
55
paths:
6-
- "samples/**"
6+
- "samples/react/**"
7+
- "samples/angular/**"
8+
- "samples/vue/**"
9+
- "samples/node/**"
10+
- "samples/react-native/**"
11+
- ".github/workflows/test-js.yml"
712
pull_request:
813
paths:
9-
- "samples/**"
14+
- "samples/react/**"
15+
- "samples/angular/**"
16+
- "samples/vue/**"
17+
- "samples/node/**"
18+
- "samples/react-native/**"
19+
- ".github/workflows/test-js.yml"
1020
schedule:
1121
- cron: "0 8 * * 1"
1222
workflow_dispatch:

0 commit comments

Comments
 (0)