Skip to content
Snippets Groups Projects
Commit 2126a686 authored by Andreas's avatar Andreas
Browse files

refactor/Updated .gitlab-ci.yml by improving job install_dependencies

parent b1ef405a
No related branches found
No related tags found
1 merge request!13Updated workflow to be run in a docker image and added job for checking lint
Pipeline #274133 failed
...@@ -6,26 +6,24 @@ stages: ...@@ -6,26 +6,24 @@ stages:
- build_project - build_project
cache: cache:
key: "node repository" # Static Cache Key to keep cache across branches key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches.
paths: paths:
- node_modules/ - node_modules/
install_dependencies: install_dependencies:
stage: install_dependencies stage: install_dependencies
image: node:latest
script: script:
- npm install - apk add --no-cache git # For instances where installations require git
- npm ci --prefer-offline # --prefer-offline to make it prefer using locally cached packages rather than downloading
lint: lint:
stage: lint stage: lint
image: node:latest
script: script:
- npm run lint - npm run lint
allow_failure: true allow_failure: true
build_project: build_project:
stage: build_project stage: build_project
image: node:latest
script: script:
- npm run build - npm run build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment