From eaa4c776413e997de32b5e25b09b78cfb4f8d4f9 Mon Sep 17 00:00:00 2001 From: Jonas Zohren Date: Wed, 14 Jul 2021 20:33:19 +0000 Subject: [PATCH] CI: Check format before running test Testing needs compilation and is slow. Format checking is quick. As format checking fails more often than tests, switching them should result in faster failure and feedback --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 424dc96..92da543 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,8 +30,8 @@ test:cargo: - rustup component add clippy rustfmt script: - rustc --version && cargo --version # Print version info for debugging - - cargo test --workspace --verbose --locked - cargo fmt --all -- --check + - cargo test --workspace --verbose --locked - cargo clippy # --------------------------------------------------------------------- #