From ab75819427b6c9b9d8455ab12cc2d0169f2ad54a Mon Sep 17 00:00:00 2001
From: abouchtita <abouchtita@devops-tp.local>
Date: Fri, 14 Mar 2025 17:25:31 +0100
Subject: [PATCH] Ajout de la configuration GitLab CI/CD avec artifacts

---
 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..24d099b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+image: node:16
+
+stages:
+  - install
+  - lint
+  - test
+
+cache:
+  paths:
+    - node_modules/
+
+before_script:
+  - npm install
+
+lint:
+  stage: lint
+  script:
+    - npm run lint
+  only:
+    - develop
+    - main
+
+test:
+  stage: test
+  script:
+    - npm run test
+  only:
+    - develop
+    - main
\ No newline at end of file
-- 
GitLab