mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-02 13:29:36 +00:00
Avoid running ci checks twice
This commit is contained in:
parent
5402bc9c19
commit
81b0658423
|
@ -3,6 +3,8 @@ pipeline:
|
||||||
image: rustdocker/rust:nightly
|
image: rustdocker/rust:nightly
|
||||||
commands:
|
commands:
|
||||||
- /root/.cargo/bin/cargo fmt -- --check
|
- /root/.cargo/bin/cargo fmt -- --check
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_check:
|
cargo_check:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -10,6 +12,8 @@ pipeline:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- cargo check --all-features --all-targets
|
- cargo check --all-features --all-targets
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_clippy:
|
cargo_clippy:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -24,6 +28,8 @@ pipeline:
|
||||||
-D clippy::wildcard_imports -D clippy::cast_lossless
|
-D clippy::wildcard_imports -D clippy::cast_lossless
|
||||||
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
|
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
|
||||||
- cargo clippy --all-features -- -D clippy::unwrap_used
|
- cargo clippy --all-features -- -D clippy::unwrap_used
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_test:
|
cargo_test:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -31,6 +37,8 @@ pipeline:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- cargo test --all-features --no-fail-fast
|
- cargo test --all-features --no-fail-fast
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_doc:
|
cargo_doc:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -38,6 +46,8 @@ pipeline:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- cargo doc --all-features
|
- cargo doc --all-features
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_run_actix_example:
|
cargo_run_actix_example:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -45,6 +55,8 @@ pipeline:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- cargo run --example local_federation actix-web
|
- cargo run --example local_federation actix-web
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_run_axum_example:
|
cargo_run_axum_example:
|
||||||
image: rust:1.70-bullseye
|
image: rust:1.70-bullseye
|
||||||
|
@ -52,3 +64,5 @@ pipeline:
|
||||||
CARGO_HOME: .cargo
|
CARGO_HOME: .cargo
|
||||||
commands:
|
commands:
|
||||||
- cargo run --example local_federation axum
|
- cargo run --example local_federation axum
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
Loading…
Reference in a new issue