File tree Expand file tree Collapse file tree 1 file changed +21
-13
lines changed
Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Original file line number Diff line number Diff line change 11version : 2
22jobs :
33 build :
4- working_directory : ~/project
54 docker :
65 - image : circleci/node:latest
6+
77 branches :
8- ignore :
9- - gh-pages # list of branches to ignore
10- - /release\/.*/ # or ignore regexes
8+ only :
9+ - master
10+ - /^greenkeeper/.*$/
11+
12+ working_directory : ~/repo
13+
1114 steps :
1215 - checkout
16+
17+ # Download and cache dependencies
1318 - restore_cache :
14- key : dependency-cache-{{ checksum "package-lock.json" }}
15- - run :
16- name : install dependences
17- command : npm install
19+ keys :
20+ - v1-dependencies-{{ checksum "package.json" }}
21+ # fallback to using the latest cache if no exact match is found
22+ - v1-dependencies-
23+
24+ - run : npm install
25+
1826 - save_cache :
19- key : dependency-cache-{{ checksum "package-lock.json" }}
2027 paths :
21- - ./node_modules
22- - run :
23- name : test
24- command : npm run test
28+ - node_modules
29+ key : v1-dependencies-{{ checksum "package.json" }}
30+
31+ # run tests!
32+ - run : npm run test
You can’t perform that action at this time.
0 commit comments