Files
pepperplus-ui/.gitlab-ci.yml
Twirre Meulenbelt 7d3c63630a feat: introduce CI/CD runner
Installs dependencies, checks style, runs tests.

ref: N25B-366
2025-12-02 16:06:14 +01:00

41 lines
603 B
YAML

# ---------- GLOBAL SETUP ---------- #
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
stages:
- install
- lint
- test
variables:
NODE_VERSION: "24.11.1"
BASE_LAYER: trixie-slim
default:
image: docker.io/library/node:${NODE_VERSION}-${BASE_LAYER}
# --------- INSTALLING --------- #
install:
stage: install
tags:
- install
script:
- npm ci
# ---------- LINTING ---------- #
lint:
stage: lint
tags:
- lint
script:
- npm run lint
# ---------- TESTING ---------- #
test:
stage: test
tags:
- test
script:
- npm run test