From 9c90aa856a24c6b9c82cafef329d6636a4a13152 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 27 Oct 2023 03:12:51 +0100 Subject: [PATCH] ci: move the linter to be before the build so that if its wrong it will fail faster --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 586b3c5..86bd5ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,6 +81,12 @@ update: - machines/**/* - secrets/**/* +linter: + <<: *builder + stage: test + script: + - nix --extra-experimental-features 'nix-command flakes' fmt -- --check . + build: <<: *builder stage: test @@ -91,12 +97,6 @@ build: - colmena build --on @active-ext - colmena build --on @active-gitlab -linter: - <<: *builder - stage: test - script: - - nix --extra-experimental-features 'nix-command flakes' fmt -- --check . - # dns always has to be deployed first deploy_dns: <<: *builder