Skip to content

Commit 98d5e8a

Browse files
lklimekclaude
andauthored
ci: add path filters to clippy and tests workflows (#715)
* ci: add path filters to clippy and tests workflows Only trigger clippy and test workflows when Rust source files, Cargo manifests, Cargo.lock, or the workflow file itself changes. Avoids unnecessary CI runs on docs-only or config-only changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: include .cargo/config.toml in path filters Rustflags and linker config changes can affect clippy and test outcomes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb84884 commit 98d5e8a

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/clippy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@ on:
55
branches:
66
- main
77
- "v*-dev"
8+
paths:
9+
- "**/*.rs"
10+
- "**/Cargo.toml"
11+
- "Cargo.lock"
12+
- ".cargo/config.toml"
13+
- ".github/workflows/clippy.yml"
814
pull_request:
915
types: [opened, synchronize, reopened, ready_for_review]
16+
paths:
17+
- "**/*.rs"
18+
- "**/Cargo.toml"
19+
- "Cargo.lock"
20+
- ".cargo/config.toml"
21+
- ".github/workflows/clippy.yml"
1022

1123
concurrency:
1224
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@ on:
55
branches:
66
- main
77
- "v*-dev"
8+
paths:
9+
- "**/*.rs"
10+
- "**/Cargo.toml"
11+
- "Cargo.lock"
12+
- ".cargo/config.toml"
13+
- ".github/workflows/tests.yml"
814
pull_request:
915
types: [opened, synchronize, reopened, ready_for_review]
16+
paths:
17+
- "**/*.rs"
18+
- "**/Cargo.toml"
19+
- "Cargo.lock"
20+
- ".cargo/config.toml"
21+
- ".github/workflows/tests.yml"
1022

1123
concurrency:
1224
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)