From cb9828ac20976cae0f96ddf4557406d4a3df7be9 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Sat, 27 Jul 2024 01:35:54 +0100 Subject: [PATCH] build: adding fix-rust-formatting target --- Earthfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 4abe5c04..6a0bc47d 100644 --- a/Earthfile +++ b/Earthfile @@ -39,10 +39,14 @@ COPY_SOURCECODE: COPY --dir "Cargo.lock" "Cargo.toml" "src/" "./" -check-rust-formatting: +rust-formatting-base: FROM +rust-base RUN rustup component add rustfmt DO +COPY_SOURCECODE + + +check-rust-formatting: + FROM +rust-formatting-base RUN ./ci/check-rust-formatting.sh @@ -80,6 +84,12 @@ check-formatting: BUILD +check-yaml-formatting +fix-rust-formatting: + FROM +rust-formatting-base + RUN ./ci/fix-rust-formatting.sh + SAVE ARTIFACT "src/" AS LOCAL "./" + + fix-shell-formatting: FROM +shell-formatting-base RUN ./ci/fix-shell-formatting.sh