aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMroik <mroik@delayed.space>2026-06-28 02:52:37 +0200
committerMroik <mroik@delayed.space>2026-06-28 02:53:40 +0200
commitd04456228d87593ede49b0d988d12b50ea27a534 (patch)
tree48821a5612b2f33a4eab21655eafcf1e222bc2e8 /.gitlab-ci.yml
parent91d07b57b17065f727f7b804979a0df6af69f3f2 (diff)
Tweak Gitlab CI
Do NOT run tests if code doesn't pass the format check Signed-off-by: Mroik <mroik@delayed.space>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
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
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj