fix: use install artifacts

Uses install artifacts in later stages.

ref: N25B-366
This commit is contained in:
Twirre Meulenbelt
2025-12-02 16:42:00 +01:00
parent 7d3c63630a
commit ea85a05f27

View File

@@ -14,6 +14,11 @@ variables:
default: default:
image: docker.io/library/node:${NODE_VERSION}-${BASE_LAYER} image: docker.io/library/node:${NODE_VERSION}-${BASE_LAYER}
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- node_modules/
policy: pull-push
# --------- INSTALLING --------- # # --------- INSTALLING --------- #
install: install:
@@ -22,10 +27,16 @@ install:
- install - install
script: script:
- npm ci - npm ci
artifacts:
paths:
- node_modules/
expire_in: 1h
# ---------- LINTING ---------- # # ---------- LINTING ---------- #
lint: lint:
stage: lint stage: lint
needs:
- install
tags: tags:
- lint - lint
script: script:
@@ -34,6 +45,8 @@ lint:
# ---------- TESTING ---------- # # ---------- TESTING ---------- #
test: test:
stage: test stage: test
needs:
- install
tags: tags:
- test - test
script: script: