From e03132c6f7dc8c952c5e3f3cb16b9a6b2a299a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Tue, 10 May 2022 13:42:54 +0200 Subject: [PATCH] CI --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 80b53429..6822a9b5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,6 +30,9 @@ jobs: multiline: false - name: build-linter-utests run: | + echo "########## LINTER ##########" + cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1) + cargo clippy --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1) export PATH=$GITHUB_WORKSPACE/bin:$PATH export RUSTC_WRAPPER=$GITHUB_WORKSPACE/bin/sccache export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache @@ -40,9 +43,6 @@ 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) - cargo clippy --all --all-features --lib -- -D warnings || (echo "Solve your clippy warnings to continue"; exit 1) echo "########## START BUILD ##########" cargo build --all-features --tests sccache --show-stats