From af9fb99c84841805065a2cf8fc99dd352fd84f1c Mon Sep 17 00:00:00 2001
From: Torben Hansen <derhansen@gmail.com>
Date: Mon, 17 May 2021 09:12:53 +0000
Subject: [PATCH] [TASK] Added stages to CI

---
 .gitlab-ci.yml | 28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 976f452..5e7e5da 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,14 +1,32 @@
-image: node:14.15.1
-pages:
+stages:
+  - linting
+  - deploy
+
+linting:
+  stage: linting
+  image: node:14.15.1
   cache:
     paths:
     - node_modules/
+  script:
+    - npm install
+    - npm run-script lint
 
+deploy:
+  stage: deploy
+  image: node:14.15.1
+  cache:
+    paths:
+    - node_modules/
   script:
-  - npm install
-  - npm run-script build
+    - npm install
+    - npm run-script build
   artifacts:
     paths:
     - public
   only:
-  - main
+    - main
+
+
+
+
-- 
GitLab