diff options
| author | Mroik <mroik@delayed.space> | 2026-06-28 02:52:37 +0200 |
|---|---|---|
| committer | Mroik <mroik@delayed.space> | 2026-06-28 02:53:40 +0200 |
| commit | d04456228d87593ede49b0d988d12b50ea27a534 (patch) | |
| tree | 48821a5612b2f33a4eab21655eafcf1e222bc2e8 | |
| parent | 91d07b57b17065f727f7b804979a0df6af69f3f2 (diff) | |
Tweak Gitlab CI
Do NOT run tests if code doesn't pass the format check
Signed-off-by: Mroik <mroik@delayed.space>
| -rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
