File tree Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
jobs :
3
- build :
4
- docker :
5
- - image : circleci/node:4.8.2
6
- steps :
3
+ build :
4
+ docker :
5
+ - image : circleci/node:7.10
6
+
7
+ working_directory : ~/repo
8
+
9
+ steps :
7
10
- checkout
8
- - run :
9
- name : update-npm
10
- command : ' sudo npm install -g npm@latest'
11
- - run :
12
- name : install-npm
13
- command : npm install
14
- - run :
15
- name : test
16
- command : npm test
11
+
12
+ # Download and cache dependencies
13
+ - restore_cache :
14
+ keys :
15
+ - v1-dependencies-{{ checksum "package.json" }}
16
+ # fallback to using the latest cache if no exact match is found
17
+ - v1-dependencies-
18
+
19
+ - run : yarn install
20
+
21
+ - save_cache :
22
+ paths :
23
+ - node_modules
24
+ key : v1-dependencies-{{ checksum "package.json" }}
25
+
26
+ # run tests!
27
+ - run : yarn test
You can’t perform that action at this time.
0 commit comments