Skip to content

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

Merged
xerial merged 1 commit intomainfrom
skip-ci-tests-with-paths-filter
Jul 19, 2025
Merged

Skip CI tests for non-code changes using dorny/paths-filter#901
xerial merged 1 commit intomainfrom
skip-ci-tests-with-paths-filter

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 <noreply@anthropic.com>
@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