Skip to content

Commit fd8abdd

Browse files
grdsdevclaude
andcommitted
feat(ci): add path filtering to optimize CI workflow execution
Add intelligent path filtering to CI workflow to only run when files that could impact the build are changed. This includes source code, tests, examples, package configuration, build files, and CI configuration itself. This optimization reduces unnecessary CI runs for documentation changes, README updates, or other non-code modifications while ensuring all impactful changes trigger the build. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 882140c commit fd8abdd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'Sources/**'
9+
- 'Tests/**'
10+
- 'Examples/**'
11+
- '*.swift'
12+
- 'Package.swift'
13+
- 'Package.resolved'
14+
- '.github/workflows/ci.yml'
15+
- 'Makefile'
16+
- '*.xcodeproj/**'
17+
- '*.xcworkspace/**'
18+
- '.swiftpm/**'
719
pull_request:
820
branches:
921
- "*"
22+
paths:
23+
- 'Sources/**'
24+
- 'Tests/**'
25+
- 'Examples/**'
26+
- '*.swift'
27+
- 'Package.swift'
28+
- 'Package.resolved'
29+
- '.github/workflows/ci.yml'
30+
- 'Makefile'
31+
- '*.xcodeproj/**'
32+
- '*.xcworkspace/**'
33+
- '.swiftpm/**'
1034
workflow_dispatch:
1135

1236
concurrency:

0 commit comments

Comments
 (0)