ci: skip unrelated jobs based on changed paths#687
Merged
nicoloboschi merged 1 commit intomainfrom Mar 25, 2026
Merged
Conversation
Add a detect-changes job using dorny/paths-filter to determine which parts of the monorepo changed, then gate each CI job with appropriate conditions. This avoids running all ~30 jobs for docs-only or integration-only changes. Key behaviors: - Docs/README-only changes only run build-docs and test-doc-examples - Integration package changes only run their specific test job - Client SDK changes only run their build/test + dependent jobs - Core API changes run all API-dependent jobs - CI config changes (.github/**) run everything as a safety net - workflow_dispatch (manual) always runs everything - verify-generated-files always runs unconditionally
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
detect-changesjob usingdorny/paths-filter@v3to determine which monorepo paths changed in the PRifconditions so only relevant jobs runverify-generated-filesalways runs unconditionallyworkflow_dispatch(manual triggers) always runs everythingExamples
build-docs,test-doc-examplestest-litellm-integrationbuild-typescript-client,test-typescript-client*,build-control-plane,test-doc-examples.github/**)Test plan
detect-changes,verify-generated-files, andci-gated jobsworkflow_dispatchshould run all jobs