forked from LemmyNet/activitypub-federation-rust
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.woodpecker.yml
54 lines (48 loc) · 1.45 KB
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pipeline:
cargo_fmt:
image: rustdocker/rust:nightly
commands:
- /root/.cargo/bin/cargo fmt -- --check
cargo_check:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- cargo check --all-features --all-targets
cargo_clippy:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- rustup component add clippy
- cargo clippy --all-targets --all-features --
-D warnings -D deprecated -D clippy::perf -D clippy::complexity
-D clippy::dbg_macro -D clippy::inefficient_to_string
-D clippy::items-after-statements -D clippy::implicit_clone
-D clippy::wildcard_imports -D clippy::cast_lossless
-D clippy::manual_string_new -D clippy::redundant_closure_for_method_calls
- cargo clippy --all-features -- -D clippy::unwrap_used
cargo_test:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- cargo test --all-features --no-fail-fast
cargo_doc:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- cargo doc --all-features
cargo_run_actix_example:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- cargo run --example local_federation actix-web
cargo_run_axum_example:
image: rust:1.70-bullseye
environment:
CARGO_HOME: .cargo
commands:
- cargo run --example local_federation axum