This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 67d0f4db authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Refine caching for npm

parent 7a16cf47
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -4,11 +4,6 @@ cache:
- key: '$CI_COMMIT_REF_NAME'
paths:
- .maven/
- key:
files:
- package-lock.json
paths:
- node_modules/
stages:
- setup
......@@ -28,6 +23,13 @@ npm-install:
stage: setup
script:
- npm install
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
policy: pull-push
checkstyle:
stage: lint
......@@ -41,6 +43,13 @@ prettier:
- npm run prettier:check
allow_failure: true
needs: [npm-install]
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
policy: pull
eslint:
stage: lint
......@@ -50,6 +59,13 @@ eslint:
- "! grep -qE '✖ [0-9]+ problem' lint.log"
allow_failure: true
needs: [npm-install]
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
policy: pull
maven-compile:
stage: build
......@@ -102,6 +118,13 @@ frontend-test:
expire_in: 1 day
allow_failure: true
needs: [npm-install]
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
policy: pull
sonar-analyze:
stage: analyze
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment