fedimovies/.woodpecker.yml

64 lines
1.5 KiB
YAML
Raw Normal View History

2023-04-27 19:27:05 +00:00
matrix:
RUST: [stable]
pipeline:
2023-04-27 21:27:00 +00:00
check-formatting:
image: rust
when:
branch: [ main ]
path:
include:
2023-04-27 21:29:27 +00:00
- .woodpecker.yml
2023-04-27 21:27:00 +00:00
- src/**/*.rs
- fedimovies-cli/**/*.rs
- fedimovies-config/**/*.rs
- fedimovies-models/**/*.rs
- fedimovies-utils/**/*.rs
2023-04-27 21:35:08 +00:00
environment:
- CARGO_TERM_COLOR=always
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
2023-04-27 21:27:00 +00:00
commands:
- rustup default $RUST
2023-04-27 21:29:27 +00:00
- rustup component add rustfmt
2023-04-27 21:27:00 +00:00
- cargo fmt --all -- --check
check-style:
image: rust
when:
branch: [ main ]
path:
include:
2023-04-27 21:29:27 +00:00
- .woodpecker.yml
- src/**/*.rs
- fedimovies-cli/**/*.rs
- fedimovies-config/**/*.rs
- fedimovies-models/**/*.rs
- fedimovies-utils/**/*.rs
2023-04-27 21:35:08 +00:00
environment:
- CARGO_TERM_COLOR=always
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
commands:
- rustup default $RUST
2023-04-27 21:27:00 +00:00
- rustup component add clippy
- cargo clippy --all-targets --all-features -- -D warnings
run-tests:
2023-04-27 19:27:05 +00:00
image: rust
when:
branch: [ main ]
path:
include:
2023-04-27 21:29:27 +00:00
- .woodpecker.yml
- src/**/*.rs
- fedimovies-cli/**/*.rs
- fedimovies-config/**/*.rs
- fedimovies-models/**/*.rs
- fedimovies-utils/**/*.rs
environment:
- CARGO_TERM_COLOR=always
2023-04-27 21:35:08 +00:00
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
2023-04-27 19:27:05 +00:00
commands:
- rustup default $RUST
- cargo test --all -- --nocapture