2022-06-02 11:17:12 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: cargo fmt
|
|
|
|
image: rustdocker/rust:nightly
|
|
|
|
commands:
|
|
|
|
- /root/.cargo/bin/cargo fmt -- --check
|
|
|
|
|
|
|
|
- name: cargo check
|
2023-01-28 03:45:11 +00:00
|
|
|
image: rust:1.65-bullseye
|
2022-11-26 16:12:48 +00:00
|
|
|
environment:
|
|
|
|
CARGO_HOME: .cargo
|
2022-06-02 11:17:12 +00:00
|
|
|
commands:
|
2023-03-01 23:19:10 +00:00
|
|
|
- cargo check --all-features --all-targets
|
2022-06-02 11:17:12 +00:00
|
|
|
|
|
|
|
- name: cargo clippy
|
2022-11-24 12:27:38 +00:00
|
|
|
image: rust:1.65-bullseye
|
2022-11-26 16:12:48 +00:00
|
|
|
environment:
|
|
|
|
CARGO_HOME: .cargo
|
2022-06-02 11:17:12 +00:00
|
|
|
commands:
|
|
|
|
- rustup component add clippy
|
2023-03-01 23:19:10 +00:00
|
|
|
- cargo clippy --all-targets --all-features --
|
2022-11-24 12:27:38 +00:00
|
|
|
-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
|
2023-03-01 23:19:10 +00:00
|
|
|
- cargo clippy --all-features -- -D clippy::unwrap_used
|
2022-06-02 11:17:12 +00:00
|
|
|
|
|
|
|
- name: cargo test
|
2023-01-28 03:45:11 +00:00
|
|
|
image: rust:1.65-bullseye
|
2022-06-02 11:17:12 +00:00
|
|
|
environment:
|
2022-11-26 16:12:48 +00:00
|
|
|
CARGO_HOME: .cargo
|
2022-06-02 11:17:12 +00:00
|
|
|
commands:
|
2023-03-01 23:19:10 +00:00
|
|
|
- cargo test --all-features --no-fail-fast
|
2022-06-02 12:30:08 +00:00
|
|
|
|
2023-03-01 23:19:10 +00:00
|
|
|
- name: cargo doc
|
|
|
|
image: rust:1.65-bullseye
|
|
|
|
environment:
|
|
|
|
CARGO_HOME: .cargo
|
|
|
|
commands:
|
|
|
|
- cargo doc --all-features
|
|
|
|
|
|
|
|
- name: cargo run actix example
|
2023-01-28 03:45:11 +00:00
|
|
|
image: rust:1.65-bullseye
|
2022-06-02 12:30:08 +00:00
|
|
|
environment:
|
2022-11-26 16:12:48 +00:00
|
|
|
CARGO_HOME: .cargo
|
2022-06-02 12:30:08 +00:00
|
|
|
commands:
|
2023-02-11 13:05:37 +00:00
|
|
|
- cargo run --example simple_federation --features actix-web
|
2023-03-01 23:19:10 +00:00
|
|
|
|
|
|
|
- name: cargo run axum example
|
2023-01-28 03:45:11 +00:00
|
|
|
image: rust:1.65-bullseye
|
2022-11-28 21:19:56 +00:00
|
|
|
environment:
|
|
|
|
CARGO_HOME: .cargo
|
|
|
|
commands:
|
2023-02-11 13:05:37 +00:00
|
|
|
- cargo run --example simple_federation --features axum
|