@@ -3,10 +3,10 @@ unit_tests: &unit_tests
33 - checkout
44 - setup_remote_docker
55 - restore_cache :
6- key : dependency-cache-{{ checksum "package.json" }}
6+ key : dependency-cache-{{ checksum "package-lock .json" }}
77 - run :
88 name : NPM Rebuild
9- command : npm rebuild
9+ command : npm install
1010 - run :
1111 name : Run unit tests.
1212 command : npm run ci:test
@@ -15,10 +15,10 @@ canary_tests: &canary_tests
1515 - checkout
1616 - setup_remote_docker
1717 - restore_cache :
18- key : dependency-cache-{{ checksum "package.json" }}
18+ key : dependency-cache-{{ checksum "package-lock .json" }}
1919 - run :
2020 name : NPM Rebuild
21- command : npm rebuild
21+ command : npm install
2222 - run :
2323 name : Install Webpack Canary
2424 command : npm i --no-save webpack@next
@@ -35,42 +35,42 @@ jobs:
3535 - checkout
3636 - setup_remote_docker
3737 - restore_cache :
38- key : dependency-cache-{{ checksum "package.json" }}
38+ key : dependency-cache-{{ checksum "package-lock .json" }}
3939 - run :
4040 name : Install Dependencies
4141 command : npm install
4242 - save_cache :
43- key : dependency-cache-{{ checksum "package.json" }}
43+ key : dependency-cache-{{ checksum "package-lock .json" }}
4444 paths :
4545 - ./node_modules
4646
47- node8_webpack_latest :
47+ node8-latest :
4848 docker :
4949 - image : webpackcontrib/circleci-node8:latest
5050 steps :
5151 - checkout
5252 - setup_remote_docker
5353 - restore_cache :
54- key : dependency-cache-{{ checksum "package.json" }}
54+ key : dependency-cache-{{ checksum "package-lock .json" }}
5555 - run :
5656 name : NPM Rebuild
57- command : npm rebuild
57+ command : npm install
5858 - run :
5959 name : Run unit tests.
6060 command : npm run ci:coverage
6161 - run :
6262 name : Submit coverage data to codecov.
6363 command : bash <(curl -s https://codecov.io/bash)
6464 when : on_success
65- node6_webpack_latest :
65+ node6-latest :
6666 docker :
6767 - image : webpackcontrib/circleci-node6:latest
6868 << : *unit_tests
69- node9_webpack_latest :
69+ node9-latest :
7070 docker :
7171 - image : webpackcontrib/circleci-node9:latest
7272 << : *unit_tests
73- node8_webpack_canary :
73+ node8-canary :
7474 docker :
7575 - image : webpackcontrib/circleci-node8:latest
7676 << : *canary_tests
@@ -81,10 +81,10 @@ jobs:
8181 - checkout
8282 - setup_remote_docker
8383 - restore_cache :
84- key : dependency-cache-{{ checksum "package.json" }}
84+ key : dependency-cache-{{ checksum "package-lock .json" }}
8585 - run :
8686 name : NPM Rebuild
87- command : npm rebuild
87+ command : npm install
8888 - run :
8989 name : Run linting.
9090 command : npm run lint
@@ -101,10 +101,10 @@ jobs:
101101 - checkout
102102 - setup_remote_docker
103103 - restore_cache :
104- key : dependency-cache-{{ checksum "package.json" }}
104+ key : dependency-cache-{{ checksum "package-lock .json" }}
105105 - run :
106106 name : NPM Rebuild
107- command : npm rebuild
107+ command : npm install
108108 - run :
109109 name : Validate Commit Messages
110110 command : npm run release:validate
@@ -118,44 +118,43 @@ workflows:
118118 validate-publish :
119119 jobs :
120120 - dependency_cache
121- - node6_webpack_latest :
121+ - node6-latest :
122122 requires :
123123 - dependency_cache
124124 filters :
125125 tags :
126126 only : /.*/
127- - node8_webpack_latest :
127+ - analysis :
128128 requires :
129129 - dependency_cache
130130 filters :
131131 tags :
132132 only : /.*/
133- - node9_webpack_latest :
133+ - node8-latest :
134134 requires :
135- - dependency_cache
135+ - analysis
136+ - node6-latest
136137 filters :
137138 tags :
138139 only : /.*/
139- - node8_webpack_canary :
140+ - node9-latest :
140141 requires :
141- - dependency_cache
142+ - analysis
143+ - node6-latest
142144 filters :
143145 tags :
144146 only : /.*/
145- - analysis :
147+ - node8-canary :
146148 requires :
147- - node6_webpack_latest
148- - node8_webpack_latest
149- - node9_webpack_latest
149+ - analysis
150+ - node6-latest
150151 filters :
151152 tags :
152153 only : /.*/
153154 - publish :
154155 requires :
155- - node6_webpack_latest
156- - node8_webpack_latest
157- - node9_webpack_latest
158- - analysis
156+ - node8-latest
157+ - node9-latest
159158 filters :
160159 branches :
161160 only :
0 commit comments