From 0caa755d3e07718fd7c52f565db41614ce3ee387 Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Mon, 24 May 2021 16:30:20 +0000
Subject: [PATCH] ci(gitlabci): restore prepare stage to install dependencies

---
 .gitlab-ci.yml | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ecbf586e55..0f032d6c78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 image: code.podlibre.org:5050/podlibre/castopod-host:latest
 
 stages:
+  - prepare
   - quality
   - bundle
   - release
@@ -11,6 +12,14 @@ cache:
     - vendor/
     - .npm/
 
+dependencies:
+  stage: prepare
+  script:
+    # Install all php dependencies
+    - composer install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
+    # Install all npm dependencies
+    - npm ci --cache .npm --prefer-offline
+
 lint-commit-msg:
   stage: quality
   script:
@@ -20,9 +29,6 @@ lint-commit-msg:
 
 lint-php:
   stage: quality
-  before_script:
-    # Install all php dependencies
-    - composer install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
   script:
     # check php code style
     - vendor/bin/ecs check --ansi
@@ -33,9 +39,6 @@ lint-php:
 
 lint-js:
   stage: quality
-  before_script:
-    # Install all npm dependencies
-    - npm ci --cache .npm --prefer-offline
   script:
     - npm run prettier
     - npm run typecheck
-- 
GitLab