From 7a34641e42244d9534edba459008ea6bc88673cf Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Thu, 13 Jun 2024 02:27:08 +0200 Subject: [PATCH] chore(gitlab-ci): restructure based on stages --- .gitlab-ci.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c4f1c155..e7752bcc1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,6 +109,20 @@ frontend lint: retry: 2 interruptible: true +backend lint: + stage: lint + cache: + - *stack-cache + script: + - "nix shell .#gnumake .#stack --command make CI=1 backend-lint" + before_script: *nix-before + needs: + - job: backend dependencies + artifacts: true + retry: 2 + interruptible: true + + frontend build: stage: build cache: @@ -135,19 +149,6 @@ frontend build: retry: 2 interruptible: true -backend lint: - stage: lint - cache: - - *stack-cache - script: - - "nix shell .#gnumake .#stack --command make CI=1 backend-lint" - before_script: *nix-before - needs: - - job: backend dependencies - artifacts: true - retry: 2 - interruptible: true - backend build: stage: build cache: