chore(ci): add path-based filtering to skip unnecessary E2E jobs#52
Merged
Conversation
Uses dorny/paths-filter to detect which areas of the codebase changed and only runs relevant CI jobs. Segkit-only PRs skip all E2E tests (~30min saved), Android-only PRs skip iOS/RN E2E, etc. The status-check job now treats skipped jobs as success. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7c0e5da to
b6a261f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
dorny/paths-filtertopr-checks.ymlso CI only runs jobs relevant to the files changed in a PR. This is the first step toward making incremental development faster as we migrate shell scripts to segkit.Changes
detect-changesjob usingdorny/paths-filter@v3to categorize changes intosegkit,android,ios,rn,shell, andcibucketsifcondition that skips it when irrelevant paths changedstatus-checkto treatskippedjobs as success (not justsuccess)Why
E2E jobs take 20-45 minutes each. Without path filtering, every PR (including segkit-only or docs-only changes) triggers all E2E suites. This change means a segkit-only PR skips ~30 minutes of unnecessary E2E runs.
segkit/**onlyplugins/android/**plugins/ios/**.github/**🤖 Generated with Claude Code