23 lines
505 B
YAML
23 lines
505 B
YAML
|
|
# Woodpecker CI pipeline. Also parseable by eye as the definition of the
|
||
|
|
# project quality bar: fmt, clippy -D warnings, full test suite.
|
||
|
|
when:
|
||
|
|
- event: [push, pull_request]
|
||
|
|
|
||
|
|
steps:
|
||
|
|
fmt:
|
||
|
|
image: rust:1
|
||
|
|
commands:
|
||
|
|
- rustup component add rustfmt
|
||
|
|
- cargo fmt --all --check
|
||
|
|
|
||
|
|
clippy:
|
||
|
|
image: rust:1
|
||
|
|
commands:
|
||
|
|
- rustup component add clippy
|
||
|
|
- cargo clippy --workspace --all-targets -- -D warnings
|
||
|
|
|
||
|
|
test:
|
||
|
|
image: rust:1
|
||
|
|
commands:
|
||
|
|
- cargo test --workspace
|