Dont redownload deps between CI steps

This commit is contained in:
Felix Ableitner 2022-11-26 17:12:48 +01:00
parent 0c6dd72328
commit 589cde3026

View file

@ -15,11 +15,15 @@ steps:
- name: cargo check - name: cargo check
image: rust:1.61-bullseye image: rust:1.61-bullseye
environment:
CARGO_HOME: .cargo
commands: commands:
- cargo check --all --all-targets - cargo check --all --all-targets
- name: cargo clippy - name: cargo clippy
image: rust:1.65-bullseye image: rust:1.65-bullseye
environment:
CARGO_HOME: .cargo
commands: commands:
- rustup component add clippy - rustup component add clippy
- cargo clippy --workspace --tests --all-targets --all-features -- - cargo clippy --workspace --tests --all-targets --all-features --
@ -33,6 +37,7 @@ steps:
- name: cargo test - name: cargo test
image: rust:1.61-bullseye image: rust:1.61-bullseye
environment: environment:
CARGO_HOME: .cargo
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
commands: commands:
- cargo test --workspace --no-fail-fast - cargo test --workspace --no-fail-fast
@ -40,6 +45,7 @@ steps:
- name: cargo run - name: cargo run
image: rust:1.61-bullseye image: rust:1.61-bullseye
environment: environment:
CARGO_HOME: .cargo
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
commands: commands:
- cargo run -p activitypub_federation --example federation - cargo run -p activitypub_federation --example federation