diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73dc1fa0ce41873fbfab17a7e852a94d29e3fc3a..2882eb766c1db929a22a9191007cec0b96dafc08 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,7 +42,14 @@ build_project:
 vitest_unit-tests:
   stage: test
   script:
+    - npm ci
     - npm run test:unit
+  cache:
+    key: ${CI_COMMIT_REF_SLUG}
+    paths:
+        - node_modules/
+    policy: pull
+