ci(test): run build and test jobs on cargo and clippy config changes (#4941)
Previous behavior: If warnings or error are added in `.cargo/config.toml` or `clippy.toml`, and those could generate CI failures, we wouldn't catch those new as the pipelines are not run when this files are changed Expected behavior: If warnings or error are added in `.cargo/config.toml` or `clippy.toml`, run all the builds and test jobs which also track a `Cargo.toml`. Solution: Add `.cargo/config.toml` and `clippy.toml` as paths to all the required jobs which needs to be triggered when these files changes. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
9f2ab39968
commit
326ae04b0f
|
@ -10,6 +10,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- '.github/workflows/build-crates-individually.yml'
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- '.github/workflows/build-crates-individually.yml'
|
||||
pull_request:
|
||||
|
@ -20,6 +23,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- '.github/workflows/build-crates-individually.yml'
|
||||
|
||||
|
|
|
@ -14,6 +14,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- 'docker/**'
|
||||
- '.github/workflows/continous-integration-docker.yml'
|
||||
|
|
|
@ -33,6 +33,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- 'docker/**'
|
||||
- '.github/workflows/continous-integration-docker.yml'
|
||||
|
|
|
@ -9,6 +9,8 @@ on:
|
|||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
- '**/deny.toml'
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
- '.github/workflows/continous-integration-os.yml'
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -17,6 +17,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- '.github/workflows/ci.yml'
|
||||
pull_request:
|
||||
|
|
|
@ -8,6 +8,9 @@ on:
|
|||
- '**/*.snap'
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
- 'codecov.yml'
|
||||
- '.github/workflows/coverage.yml'
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@ on:
|
|||
# dependencies
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
# configuration files
|
||||
- '.cargo/config.toml'
|
||||
- '**/clippy.toml'
|
||||
# workflow definitions
|
||||
- 'codecov.yml'
|
||||
- '.github/workflows/coverage.yml'
|
||||
|
|
Loading…
Reference in New Issue