activitypub-federation-rust/.woodpecker.yml

57 lines
1.1 KiB
YAML
Raw Permalink Normal View History

variables:
- &rust_image "rust:1.78-bullseye"
steps:
2023-03-25 02:18:51 +05:30
cargo_fmt:
2022-06-02 16:47:12 +05:30
image: rustdocker/rust:nightly
commands:
- /root/.cargo/bin/cargo fmt -- --check
when:
- event: pull_request
2022-06-02 16:47:12 +05:30
2023-03-25 02:18:51 +05:30
cargo_clippy:
image: *rust_image
2022-11-26 21:42:48 +05:30
environment:
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
commands:
- rustup component add clippy
- cargo clippy --all-targets --all-features
when:
- event: pull_request
2022-06-02 16:47:12 +05:30
2023-03-25 02:18:51 +05:30
cargo_test:
image: *rust_image
2022-06-02 16:47:12 +05:30
environment:
2022-11-26 21:42:48 +05:30
CARGO_HOME: .cargo
2022-06-02 16:47:12 +05:30
commands:
2023-03-02 04:49:10 +05:30
- cargo test --all-features --no-fail-fast
when:
- event: pull_request
2023-03-25 02:18:51 +05:30
cargo_doc:
image: *rust_image
2023-03-02 04:49:10 +05:30
environment:
CARGO_HOME: .cargo
commands:
- cargo doc --all-features
when:
- event: pull_request
2023-03-02 04:49:10 +05:30
2023-03-25 02:18:51 +05:30
cargo_run_actix_example:
image: *rust_image
environment:
2022-11-26 21:42:48 +05:30
CARGO_HOME: .cargo
commands:
2023-03-02 19:48:06 +05:30
- cargo run --example local_federation actix-web
when:
- event: pull_request
2023-03-02 04:49:10 +05:30
2023-03-25 02:18:51 +05:30
cargo_run_axum_example:
image: *rust_image
environment:
CARGO_HOME: .cargo
commands:
2023-03-02 19:48:06 +05:30
- cargo run --example local_federation axum
when:
- event: pull_request