From 3b48df1093ef070d55aeb8cfb2e3d5e19711d830 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 13 Jul 2025 17:33:00 -0500 Subject: [PATCH] gitlab-ci: run tests in CI, not build (always before deploy) --- .gitlab-ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6afba16..14b7efa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,16 +5,13 @@ default: timeout: 1 minute stages: - - build + - test - deploy -build: - stage: build +test: + stage: test script: - - npm run build - only: - variables: - - $CI_DEFAULT_BRANCH != $CI_COMMIT_REF_NAME + - npm run test pages: stage: deploy