Skip to content

build: adding fix-rust-formatting target #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down
Loading