From b6114c984fe5a61c9b00daa61cf2ab2fa82c5270 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr>
Date: Wed, 21 Dec 2022 17:20:17 +0100
Subject: [PATCH] Split install/test/deploy to reduce artifacts size

---
 .gitlab-ci.yml | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c3a70e4..8d96b79 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,19 +1,27 @@
-upstream_tests:
+install:
+  stage: install
   image: docker.io/node:current
-  before_script:
+  script:
     - npm ci
+  artifacts:
+    paths:
+      - node_modules
+
+upstream_tests:
+  stage: test
+  image: docker.io/node:current
   script:
     - npm run test:ci
   artifacts:
     when: always
     paths:
       - junit.xml
-      - node_modules
     reports:
       junit: junit.xml
 
 pages:
   stage: deploy
+  image: docker.io/node:current
   script:
     - npm run build
     - rm -rf public
-- 
GitLab