From 527d70e31acfe729026cbd94c4b6decd0399b395 Mon Sep 17 00:00:00 2001 From: florent <flavelle@neogeo.fr> Date: Mon, 25 Apr 2022 10:58:31 +0200 Subject: [PATCH] add test build to CI --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7c8f34b..0bb13727 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - test-build - Static analysis - build - deploy @@ -8,6 +9,16 @@ variables: SONAR_HOST_URL: "https://sonarqube.neogeo.fr" GIT_DEPTH: 0 +test build: + stage: test-build + script: + - npm install + - npm run build + except: + - master + - develop + - ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ + build testing docker image: stage: build only: -- GitLab