From 9c987147e6ad724bdc0e24f3818114e66e0290b8 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:34:35 +0100
Subject: [PATCH] Simplify pipeline to avoid passing too big artifacts

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3af5c0e..4fc4418 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,29 +1,10 @@
-install:
-  stage: .pre
-  image: docker.io/node:current
-  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
-    reports:
-      junit: junit.xml
-
 pages:
   stage: deploy
   image: docker.io/node:current
-  script:
+  before_script:
+    - npm ci
     - npm run build
+  script:
     - rm -rf public
     - cp -r demo/dist public
   artifacts:
-- 
GitLab