lot of refactor
This commit is contained in:
+4
-2
@@ -1,11 +1,12 @@
|
||||
FROM rust:1.93.1-alpine3.23 AS builder
|
||||
FROM rust:1.94.0-alpine3.23 AS builder
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cargo \
|
||||
rustup component add clippy && \
|
||||
rustup component add rustfmt --toolchain nightly
|
||||
|
||||
RUN \
|
||||
cargo install cargo-sort
|
||||
cargo install cargo-sort && \
|
||||
cargo install machete
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
@@ -13,6 +14,7 @@ COPY . .
|
||||
|
||||
RUN --mount=type=cache,target=/build/target \
|
||||
cargo sort ./**/Cargo.toml --check && \
|
||||
cargo machete --with-metadata && \
|
||||
cargo clippy && \
|
||||
cargo +nightly fmt --check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user