From fee25718a222f381561bf6c029a1bebd5bc08359 Mon Sep 17 00:00:00 2001 From: Pierre Mavro Date: Fri, 14 May 2021 19:17:49 +0200 Subject: [PATCH] feat: add rust linting --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b06705f..6268ca5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,6 +26,9 @@ jobs: echo "########## SHARED CACHE STATUS ##########" sccache --version sccache --show-stats + echo "########## LINTER ##########" + cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1) + RUSTFLAGS="--deny warnings" cargo check || (echo "Solve your warnings to continue"; exit 1) echo "########## START BUILD ##########" cargo build --all-features sccache --show-stats