Only run cargo when Rust code is changed
This commit is contained in:
parent
a2bc297f0e
commit
5d0b03c2a3
1 changed files with 23 additions and 3 deletions
|
@ -2,9 +2,29 @@ matrix:
|
|||
RUST: [stable]
|
||||
|
||||
pipeline:
|
||||
test:
|
||||
|
||||
check-style:
|
||||
image: rust
|
||||
environment: [CARGO_TERM_COLOR=always]
|
||||
when:
|
||||
branch: [ master ]
|
||||
path:
|
||||
include:
|
||||
- src/**/*.rs
|
||||
- fedimovies-*/**/*.rs
|
||||
commands:
|
||||
- rustup default $RUST
|
||||
- cargo check
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
run-tests:
|
||||
image: rust
|
||||
when:
|
||||
branch: [ master ]
|
||||
path:
|
||||
include:
|
||||
- src/**/*.rs
|
||||
- fedimovies-*/**/*.rs
|
||||
environment:
|
||||
- CARGO_TERM_COLOR=always
|
||||
commands:
|
||||
- rustup default $RUST
|
||||
- cargo test --all -- --nocapture
|
||||
|
|
Loading…
Reference in a new issue