BlueGit

timfa filemanager

Files

filemanager / blue-ci-cd.yml

blue-ci-cd.yml

blue-ci-cd.yml 587 B Download Raw
1# Pipeline voor Steve (BlueGit, git.timfalken.com/timfa/filemanager).
2# Draait de Jest-tests (npm test) bij merge requests en op master.
3
4stages: [test]
5
6workflow:
7 rules:
8 - if: $CI_PIPELINE_SOURCE == "merge_request_event"
9 - if: $CI_COMMIT_BRANCH == "master"
10 - if: $CI_PIPELINE_SOURCE == "web"
11 - if: $CI_PIPELINE_SOURCE == "api"
12
13test:
14 stage: test
15 image: node:22-bookworm
16 timeout: 30m
17 variables:
18 npm_config_cache: "$CI_PROJECT_DIR/.npm"
19 cache:
20 key: npm
21 paths: [.npm/]
22 script:
23 - node --version
24 - npm ci --no-audit --no-fund
25 - npm test