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