From f6d8f36584c1ea07ca4ae64042649022c65da84d Mon Sep 17 00:00:00 2001
From: Max Frederiksen <maxfrederiksen@Maxs-MacBook-Air.local>
Date: Fri, 29 Nov 2024 15:18:07 +0100
Subject: [PATCH] revert gitlab-ci file to original but with new aliases

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4771f23e..fdac18ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,3 +10,43 @@ variables:
   JOB_TAG: ce-deploy-ui
   IMAGE_TAG_VAR: ce_deploy_ui_container_image_tag
   DOMAIN: ce-deploy-${INSTANCE}.cslab.esss.lu.se
+
+install-dependencies:
+  artifacts:
+    paths:
+      - .cache/*
+      - cache/Cypress
+      - node_modules
+      - .npm
+
+lint:
+  stage: check
+  script:
+    - npm run ci:code-quality
+  artifacts:
+    reports:
+      codequality: gl-codequality.json
+
+.test-components:
+  stage: test
+  image: cypress/browsers:node-20.10.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
+  script:
+    - npm ci
+    - npm start &
+    - CHOKIDAR_USEPOLLING=true WATCHPACK_POLLING=true npx cypress run --component --browser ${BROWSER}
+  needs: [] # no requirements since it does an install
+  artifacts:
+    when: on_failure
+    paths:
+      - cypress/videos
+      - cypress/screenshots
+
+test-components-chrome:
+  extends: .test-components
+  variables:
+    BROWSER: chrome
+
+test-components-firefox:
+  extends: .test-components
+  variables:
+    BROWSER: firefox
-- 
GitLab