From c4dfd1bdb40cd208fcf3adf6ba2628c88c860ce0 Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Sun, 19 Jun 2022 14:09:28 +0200
Subject: [PATCH] ci: add stage schedule

---
 .gitlab-ci.yml | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 95ed3b317..eff2a2845 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
 stages:
+  - schedule
   - labels
   - quality
   - build
@@ -17,6 +18,15 @@ workflow:
       - Cargo.toml
       - Cargo.lock
 
+sanity_tests:
+  extends: .env
+  rules:
+    - if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_TOPIC=="sanity-tests"'
+    - when: never
+  stage: schedule
+  script:
+    - cargo sanity-${CURRENCY}
+
 check_labels:
   extends: .env
   stage: labels
@@ -134,15 +144,6 @@ build_release_manual:
       - build/
     expire_in: 3 day
 
-sanity_tests:
-  extends: .env
-  rules:
-    - if: $CI_PIPELINE_SOURCE == "schedule"
-    - when: never
-  stage: tests
-  script:
-    - cargo sanity-gdev
-
 tests_debug:
   extends: .env
   rules:
-- 
GitLab