forcebot_rs/.woodpecker/cargo-checks.yml

21 lines
410 B
YAML
Raw Permalink Normal View History

2024-02-25 10:54:02 -05:00
when:
2024-02-25 13:51:20 -05:00
branch: main
2024-02-25 13:48:23 -05:00
event: [push, pull_request]
path:
include:
- "src/**"
2024-02-25 10:54:02 -05:00
steps:
2024-02-25 12:12:53 -05:00
configure_rustup:
2024-02-25 10:55:42 -05:00
image: rust
2024-02-25 13:51:20 -05:00
commands:
- rustup update stable && rustup default stable
2024-02-25 12:12:53 -05:00
cargo_clippy:
image: rust
commands:
2024-02-25 13:51:20 -05:00
- rustup component add clippy
2024-02-25 12:12:53 -05:00
- cargo clippy --all-targets --all-features
2024-02-25 10:54:02 -05:00
cargo_test:
2024-02-25 10:59:16 -05:00
image: rust
2024-02-25 10:54:02 -05:00
commands:
2024-02-25 12:12:53 -05:00
- cargo test --all-features