64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
matrix:
|
|
RUST: [stable]
|
|
|
|
pipeline:
|
|
|
|
check-formatting:
|
|
image: rust
|
|
when:
|
|
branch: [ main ]
|
|
path:
|
|
include:
|
|
- .woodpecker.yml
|
|
- src/**/*.rs
|
|
- fedimovies-cli/**/*.rs
|
|
- fedimovies-config/**/*.rs
|
|
- fedimovies-models/**/*.rs
|
|
- fedimovies-utils/**/*.rs
|
|
environment:
|
|
- CARGO_TERM_COLOR=always
|
|
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
|
commands:
|
|
- rustup default $RUST
|
|
- rustup component add rustfmt
|
|
- cargo fmt --all -- --check
|
|
|
|
check-style:
|
|
image: rust
|
|
when:
|
|
branch: [ main ]
|
|
path:
|
|
include:
|
|
- .woodpecker.yml
|
|
- src/**/*.rs
|
|
- fedimovies-cli/**/*.rs
|
|
- fedimovies-config/**/*.rs
|
|
- fedimovies-models/**/*.rs
|
|
- fedimovies-utils/**/*.rs
|
|
environment:
|
|
- CARGO_TERM_COLOR=always
|
|
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
|
commands:
|
|
- rustup default $RUST
|
|
- rustup component add clippy
|
|
- cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
run-tests:
|
|
image: rust
|
|
when:
|
|
branch: [ main ]
|
|
path:
|
|
include:
|
|
- .woodpecker.yml
|
|
- src/**/*.rs
|
|
- fedimovies-cli/**/*.rs
|
|
- fedimovies-config/**/*.rs
|
|
- fedimovies-models/**/*.rs
|
|
- fedimovies-utils/**/*.rs
|
|
environment:
|
|
- CARGO_TERM_COLOR=always
|
|
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
|
commands:
|
|
- rustup default $RUST
|
|
- cargo test --all -- --nocapture
|