From 3b1702cad873b87bd44fb7cce07acac9bab6e5f0 Mon Sep 17 00:00:00 2001
From: Andreas <andreksv@ntnu.no>
Date: Fri, 26 Apr 2024 13:42:48 +0200
Subject: [PATCH] feat/Job for checking lint

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 00ecd11..df8cbc2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,13 +37,28 @@ build_project:
 vitest_unit-tests:
   stage: test
   script:
+    - npm ci
     - npm run test:unit
+  dependencies:
+    - install_dependencies
   cache:
     key: ${CI_COMMIT_REF_SLUG}
     paths:
         - node_modules/
     policy: pull
 
+eslint_lint:
+  stage: test
+  script:
+    - npm run lint
+  dependencies:
+    - install_dependencies
+  cache:
+    key: ${CI_COMMIT_REF_SLUG}
+    paths:
+        - node_modules/
+    policy: pull
+  allow_failure: true  
 
 
 
-- 
GitLab