26 lines
577 B
YAML
26 lines
577 B
YAML
|
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
|