nefarious-login/.woodpecker/test.yml

35 lines
486 B
YAML
Raw Normal View History

when:
- event: [pull_request, tag]
- event: push
branch:
- main
variables:
- &rust_image 'rustlang/rust:nightly'
steps:
build:
image: *rust_image
group: build
commands:
- "cargo build"
test:
image: *rust_image
group: test
commands:
- "cargo test"
lint:
image: *rust_image
group: lint
commands:
- "cargo clippy"
fmt:
image: *rust_image
group: fmt
commands:
- "cargo fmt --all --check"