Last active
April 14, 2020 01:16
-
-
Save mostafabahri/283897c4dd0e1916c7a5b5f764f03709 to your computer and use it in GitHub Desktop.
gitlab ci npm with caching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
stages: | |
- test | |
test: | |
image: node:11-alpine | |
stage: test | |
cache: | |
paths: | |
- .npm-cache/ | |
before_script: | |
- npm ci --cache .npm-cache | |
script: | |
- npm run test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Faster than
npm install
and cachingnode_modules