Skip to content

Skip CI tests for non-code changes using dorny/paths-filter #901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2025

Conversation

xerial
Copy link
Member

@xerial xerial commented Jul 19, 2025

Summary

  • Implements dorny/paths-filter to conditionally skip CI tests based on file changes
  • Adds a changes job that detects whether code or documentation files were modified
  • Updates code_format and test jobs to only run when code changes are detected
  • Improves CI efficiency by skipping expensive test matrix when only documentation is updated

Benefits

  • Faster CI runs for documentation-only PRs
  • Reduced resource usage and costs
  • Maintains all existing functionality for code changes

Test plan

  • Verify CI runs normally for code changes
  • Verify CI skips tests for documentation-only changes
  • Test with mixed changes (code + docs)

🤖 Generated with Claude Code

- Add dorny/paths-filter action to detect file changes
- Skip code format and test jobs when only docs are changed
- Improve CI efficiency by running tests only when needed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@xerial xerial enabled auto-merge (squash) July 19, 2025 17:45
@xerial xerial merged commit 4e6458a into main Jul 19, 2025
9 checks passed
@xerial xerial deleted the skip-ci-tests-with-paths-filter branch July 19, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant