Skip to content

chore(ci): optimize CI only to be invoked on path changes#333

Open
marcinszalski-callstack wants to merge 1 commit into
callstack:mainfrom
marcinszalski-callstack:feature/improve_ci_filter_by_paths
Open

chore(ci): optimize CI only to be invoked on path changes#333
marcinszalski-callstack wants to merge 1 commit into
callstack:mainfrom
marcinszalski-callstack:feature/improve_ci_filter_by_paths

Conversation

@marcinszalski-callstack
Copy link
Copy Markdown
Contributor

@marcinszalski-callstack marcinszalski-callstack commented May 13, 2026

Summary

What to change Expected jobs to run
README.md only filter only
packages/** filter, check-changeset, build-lint, all 4 road tests
apps/RNApp/ only filter, android-androidapp-vanilla, ios-appleapp-vanilla
apps/ExpoApp54/ only filter, android-androidapp-expo, ios-appleapp-expo
apps/ExpoApp55/ only filter, android-androidapp-expo, ios-appleapp-expo
apps/AndroidApp/ only filter, android-androidapp-expo, android-androidapp-vanilla
apps/AppleApp/ only filter, ios-appleapp-vanilla, ios-appleapp-expo

Test plan

dummy PRs with changes from each category:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the main CI workflow to run jobs conditionally based on which paths changed in a PR, reducing unnecessary CI workload for changes scoped to specific apps or packages.

Changes:

  • Added a filter job using dorny/paths-filter to detect which top-level areas changed.
  • Gated check-changeset and build-lint behind package-path changes.
  • Updated Android/iOS road test jobs to run only for relevant app/package changes (and to tolerate build-lint being skipped).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment on lines +32 to +44
filters: |
packages:
- 'packages/**'
rnapp:
- 'apps/RNApp/**'
expo54:
- 'apps/ExpoApp54/**'
expo55:
- 'apps/ExpoApp55/**'
androidapp:
- 'apps/AndroidApp/**'
appleapp:
- 'apps/AppleApp/**'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread .github/workflows/ci.yml
Copy link
Copy Markdown
Collaborator

@artus9033 artus9033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my end, LGTM after this is resolved. Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants