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:
- build_project
cache:
key: "node repository" # Static Cache Key to keep cache across branches
paths:
key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches.
paths:
- node_modules/
install_dependencies:
stage: install_dependencies
image: node:latest
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:
stage: lint
image: node:latest
script:
- npm run lint
allow_failure: true
build_project:
stage: build_project
image: node:latest
script:
- 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