Skip CI for README-only and .github-only changes#796
Merged
Conversation
The CI workflow ran on every push and pull request, even when the only changes were to the README or files in the .github directory, which can't affect the build or test results. Add paths-ignore filters so CI is skipped when a push or pull request only touches those locations. Fixes #634. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Resyntax analyzed 0 files in this pull request and found no issues.
Using paths-ignore skipped the whole CI workflow for README/.github-only changes, but "Build and Test" is a required status check in the repo's ruleset. A required check that never runs is never satisfied, so those pull requests couldn't merge. Instead of skipping the workflow, always run the "Build and Test" job so it reports a status, and gate the expensive build and test steps on a detect-changes job that checks whether anything outside README.md or .github/ changed. The Code Coverage job (not a required check) is skipped entirely in that case. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Resyntax Analysis workflow installs and builds the package in order to analyze changed files, which is just as wasteful as running CI for changes that only touch the README or the .github directory. Add a paths-ignore filter so it's skipped for those pull requests. Unlike "Build and Test", this workflow isn't a required status check, so it can be skipped at the workflow level without blocking merges. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Resyntax analyzed 0 files in this pull request and found no issues.
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.
Fixes #634.