This commit is contained in:
parent
f73a05439d
commit
456d0789fb
1 changed files with 16 additions and 0 deletions
|
@ -3,6 +3,21 @@ matrix:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
|
check-formatting:
|
||||||
|
image: rust
|
||||||
|
when:
|
||||||
|
branch: [ main ]
|
||||||
|
path:
|
||||||
|
include:
|
||||||
|
- src/**/*.rs
|
||||||
|
- fedimovies-cli/**/*.rs
|
||||||
|
- fedimovies-config/**/*.rs
|
||||||
|
- fedimovies-models/**/*.rs
|
||||||
|
- fedimovies-utils/**/*.rs
|
||||||
|
commands:
|
||||||
|
- rustup default $RUST
|
||||||
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
check-style:
|
check-style:
|
||||||
image: rust
|
image: rust
|
||||||
when:
|
when:
|
||||||
|
@ -16,6 +31,7 @@ pipeline:
|
||||||
- fedimovies-utils/**/*.rs
|
- fedimovies-utils/**/*.rs
|
||||||
commands:
|
commands:
|
||||||
- rustup default $RUST
|
- rustup default $RUST
|
||||||
|
- rustup component add clippy
|
||||||
- cargo clippy --all-targets --all-features -- -D warnings
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
|
|
Loading…
Reference in a new issue