rust/.woodpecker.yml

26 lines
577 B
YAML
Raw Normal View History

2024-06-11 05:24:37 +00:00
matrix:
RUST: [stable, beta, nightly]
steps:
fmt:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- rustup component add rustfmt
- cargo fmt -- --check
clippy:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- rustup component add clippy
- cargo clippy -- -D warnings
test:
image: rust:alpine
environment: [CARGO_TERM_COLOR=always]
commands:
- rustup default $RUST
- cargo check
- cargo test