26 lines
743 B
YAML
26 lines
743 B
YAML
|
when:
|
||
|
- event: [pull_request]
|
||
|
|
||
|
steps:
|
||
|
fmt:
|
||
|
image: git.ragarock.moe/silvana/yuno/rust:latest
|
||
|
environment: [CARGO_TERM_COLOR=always, CARGO_HOME=./.cargo-home]
|
||
|
commands:
|
||
|
- rustup default nightly
|
||
|
- rustup component add rustfmt
|
||
|
- cargo fmt -- --check
|
||
|
clippy:
|
||
|
image: git.ragarock.moe/silvana/yuno/rust:latest
|
||
|
environment: [CARGO_TERM_COLOR=always, CARGO_HOME=./.cargo-home]
|
||
|
commands:
|
||
|
- rustup default nightly
|
||
|
- rustup component add clippy
|
||
|
- cargo clippy -- -D warnings
|
||
|
test:
|
||
|
image: git.ragarock.moe/silvana/yuno/rust:latest
|
||
|
environment: [CARGO_TERM_COLOR=always, CARGO_HOME=./.cargo-home]
|
||
|
commands:
|
||
|
- rustup default nightly
|
||
|
- cargo check
|
||
|
- cargo test
|