2023-04-27 19:27:05 +00:00
|
|
|
matrix:
|
|
|
|
RUST: [stable]
|
|
|
|
|
|
|
|
pipeline:
|
2023-04-27 20:13:05 +00:00
|
|
|
|
2023-04-27 21:27:00 +00:00
|
|
|
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
|
|
|
|
|
2023-04-27 20:13:05 +00:00
|
|
|
check-style:
|
|
|
|
image: rust
|
|
|
|
when:
|
2023-04-27 21:24:08 +00:00
|
|
|
branch: [ main ]
|
|
|
|
path:
|
|
|
|
include:
|
|
|
|
- src/**/*.rs
|
|
|
|
- fedimovies-cli/**/*.rs
|
|
|
|
- fedimovies-config/**/*.rs
|
|
|
|
- fedimovies-models/**/*.rs
|
|
|
|
- fedimovies-utils/**/*.rs
|
2023-04-27 20:13:05 +00:00
|
|
|
commands:
|
|
|
|
- rustup default $RUST
|
2023-04-27 21:27:00 +00:00
|
|
|
- rustup component add clippy
|
2023-04-27 20:13:05 +00:00
|
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
|
|
|
|
run-tests:
|
2023-04-27 19:27:05 +00:00
|
|
|
image: rust
|
2023-04-27 20:13:05 +00:00
|
|
|
when:
|
2023-04-27 21:24:08 +00:00
|
|
|
branch: [ main ]
|
|
|
|
path:
|
|
|
|
include:
|
|
|
|
- src/**/*.rs
|
|
|
|
- fedimovies-cli/**/*.rs
|
|
|
|
- fedimovies-config/**/*.rs
|
|
|
|
- fedimovies-models/**/*.rs
|
|
|
|
- fedimovies-utils/**/*.rs
|
2023-04-27 20:13:05 +00:00
|
|
|
environment:
|
|
|
|
- CARGO_TERM_COLOR=always
|
2023-04-27 19:27:05 +00:00
|
|
|
commands:
|
|
|
|
- rustup default $RUST
|
2023-04-27 20:13:05 +00:00
|
|
|
- cargo test --all -- --nocapture
|