File tree 4 files changed +2447
-682
lines changed
4 files changed +2447
-682
lines changed Original file line number Diff line number Diff line change 7
7
build :
8
8
docker :
9
9
# specify the version you desire here
10
- - image : circleci/node:10.15
10
+ - image : circleci/node:10.13.0-browsers
11
11
12
12
# Specify service dependencies here if necessary
13
13
# CircleCI maintains a library of pre-built images
@@ -22,24 +22,18 @@ jobs:
22
22
# Download and cache dependencies
23
23
- restore_cache :
24
24
keys :
25
- - v1-dependencies-{{ checksum "package.json" }}
26
- # fallback to using the latest cache if no exact match is found
27
- - v1-dependencies-
25
+ # when lock file changes, use increasingly general patterns to restore cache
26
+ - node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
27
+ - node-v1-{{ .Branch }}-
28
+ - node-v1-
28
29
29
- - run :
30
- command : npm install
31
- working_directory : ~/repo/yaps
30
+ - run : npm ci
32
31
33
32
- save_cache :
34
33
paths :
35
- - node_modules
36
- key : v1-dependencies -{{ checksum "package.json" }}
34
+ - ~/usr/local/lib/ node_modules # location depends on npm version
35
+ key : node- v1-{{ .Branch }} -{{ checksum "package-lock .json" }}
37
36
38
- # run eslint
39
- - run :
40
- command : npm run lint
41
- working_directory : ~/repo
42
-
43
- # run tests!
44
- - run :
45
- command : npm test
37
+ # run all linting and testing
38
+ - run : npm run lint
39
+ - run : npm t
You can’t perform that action at this time.
0 commit comments