2024-02-25 10:54:02 -05:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
2024-02-25 12:12:53 -05:00
|
|
|
- path:
|
|
|
|
include: ["*.rs"]
|
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 10:59:16 -05:00
|
|
|
commands: |
|
|
|
|
rustup update stable && rustup default stable
|
|
|
|
rustup component add clippy
|
2024-02-25 12:12:53 -05:00
|
|
|
cargo_clippy:
|
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- 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
|