linter
This commit is contained in:
+12
@@ -1,9 +1,21 @@
|
||||
FROM rust:1.93.1-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
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN --mount=type=cache,target=/build/target \
|
||||
cargo sort ./**/Cargo.toml --check && \
|
||||
cargo clippy && \
|
||||
cargo +nightly fmt --check
|
||||
|
||||
RUN --mount=type=cache,target=/build/target \
|
||||
mkdir release && \
|
||||
cargo build --workspace --release && \
|
||||
|
||||
Reference in New Issue
Block a user