mirror of
https://github.com/LemmyNet/activitypub-federation-rust
synced 2024-11-27 05:40:19 +00:00
6edbc06a78
* Convert content-type to lowercase for comparison * rust 1.78 * clippy priority * upgrade dep
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
variables:
|
|
- &rust_image "rust:1.78-bullseye"
|
|
|
|
steps:
|
|
cargo_fmt:
|
|
image: rustdocker/rust:nightly
|
|
commands:
|
|
- /root/.cargo/bin/cargo fmt -- --check
|
|
when:
|
|
- event: pull_request
|
|
|
|
cargo_clippy:
|
|
image: *rust_image
|
|
environment:
|
|
CARGO_HOME: .cargo
|
|
commands:
|
|
- rustup component add clippy
|
|
- cargo clippy --all-targets --all-features
|
|
when:
|
|
- event: pull_request
|
|
|
|
cargo_test:
|
|
image: *rust_image
|
|
environment:
|
|
CARGO_HOME: .cargo
|
|
commands:
|
|
- cargo test --all-features --no-fail-fast
|
|
when:
|
|
- event: pull_request
|
|
|
|
cargo_doc:
|
|
image: *rust_image
|
|
environment:
|
|
CARGO_HOME: .cargo
|
|
commands:
|
|
- cargo doc --all-features
|
|
when:
|
|
- event: pull_request
|
|
|
|
cargo_run_actix_example:
|
|
image: *rust_image
|
|
environment:
|
|
CARGO_HOME: .cargo
|
|
commands:
|
|
- cargo run --example local_federation actix-web
|
|
when:
|
|
- event: pull_request
|
|
|
|
cargo_run_axum_example:
|
|
image: *rust_image
|
|
environment:
|
|
CARGO_HOME: .cargo
|
|
commands:
|
|
- cargo run --example local_federation axum
|
|
when:
|
|
- event: pull_request
|