From d04456228d87593ede49b0d988d12b50ea27a534 Mon Sep 17 00:00:00 2001 From: Mroik Date: Sun, 28 Jun 2026 02:52:37 +0200 Subject: Tweak Gitlab CI Do NOT run tests if code doesn't pass the format check Signed-off-by: Mroik --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 207e10d..b0a26ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,9 @@ stages: + - lint - correct check-format: - stage: correct + stage: lint image: rust:latest script: - rustup component add rustfmt @@ -11,5 +12,6 @@ check-format: run-tests: stage: correct image: rust:1.94.1 + needs: ["check-format"] script: - cargo test -- --test-threads=1 -- cgit v1.3.1