@@ -3,10 +3,10 @@ unit_tests: &unit_tests
3
3
- checkout
4
4
- setup_remote_docker
5
5
- restore_cache :
6
- key : dependency-cache-{{ checksum "package.json" }}
6
+ key : dependency-cache-{{ checksum "package-lock .json" }}
7
7
- run :
8
8
name : NPM Rebuild
9
- command : npm rebuild
9
+ command : npm install
10
10
- run :
11
11
name : Run unit tests.
12
12
command : npm run ci:test
@@ -15,10 +15,10 @@ canary_tests: &canary_tests
15
15
- checkout
16
16
- setup_remote_docker
17
17
- restore_cache :
18
- key : dependency-cache-{{ checksum "package.json" }}
18
+ key : dependency-cache-{{ checksum "package-lock .json" }}
19
19
- run :
20
20
name : NPM Rebuild
21
- command : npm rebuild
21
+ command : npm install
22
22
- run :
23
23
name : Install Webpack Canary
24
24
command : npm i --no-save webpack@next
@@ -35,42 +35,42 @@ jobs:
35
35
- checkout
36
36
- setup_remote_docker
37
37
- restore_cache :
38
- key : dependency-cache-{{ checksum "package.json" }}
38
+ key : dependency-cache-{{ checksum "package-lock .json" }}
39
39
- run :
40
40
name : Install Dependencies
41
41
command : npm install
42
42
- save_cache :
43
- key : dependency-cache-{{ checksum "package.json" }}
43
+ key : dependency-cache-{{ checksum "package-lock .json" }}
44
44
paths :
45
45
- ./node_modules
46
46
47
- node8_webpack_latest :
47
+ node8-latest :
48
48
docker :
49
49
- image : webpackcontrib/circleci-node8:latest
50
50
steps :
51
51
- checkout
52
52
- setup_remote_docker
53
53
- restore_cache :
54
- key : dependency-cache-{{ checksum "package.json" }}
54
+ key : dependency-cache-{{ checksum "package-lock .json" }}
55
55
- run :
56
56
name : NPM Rebuild
57
- command : npm rebuild
57
+ command : npm install
58
58
- run :
59
59
name : Run unit tests.
60
60
command : npm run ci:coverage
61
61
- run :
62
62
name : Submit coverage data to codecov.
63
63
command : bash <(curl -s https://codecov.io/bash)
64
64
when : on_success
65
- node6_webpack_latest :
65
+ node6-latest :
66
66
docker :
67
67
- image : webpackcontrib/circleci-node6:latest
68
68
<< : *unit_tests
69
- node9_webpack_latest :
69
+ node9-latest :
70
70
docker :
71
71
- image : webpackcontrib/circleci-node9:latest
72
72
<< : *unit_tests
73
- node8_webpack_canary :
73
+ node8-canary :
74
74
docker :
75
75
- image : webpackcontrib/circleci-node8:latest
76
76
<< : *canary_tests
@@ -81,10 +81,10 @@ jobs:
81
81
- checkout
82
82
- setup_remote_docker
83
83
- restore_cache :
84
- key : dependency-cache-{{ checksum "package.json" }}
84
+ key : dependency-cache-{{ checksum "package-lock .json" }}
85
85
- run :
86
86
name : NPM Rebuild
87
- command : npm rebuild
87
+ command : npm install
88
88
- run :
89
89
name : Run linting.
90
90
command : npm run lint
@@ -101,10 +101,10 @@ jobs:
101
101
- checkout
102
102
- setup_remote_docker
103
103
- restore_cache :
104
- key : dependency-cache-{{ checksum "package.json" }}
104
+ key : dependency-cache-{{ checksum "package-lock .json" }}
105
105
- run :
106
106
name : NPM Rebuild
107
- command : npm rebuild
107
+ command : npm install
108
108
- run :
109
109
name : Validate Commit Messages
110
110
command : npm run release:validate
@@ -118,44 +118,43 @@ workflows:
118
118
validate-publish :
119
119
jobs :
120
120
- dependency_cache
121
- - node6_webpack_latest :
121
+ - node6-latest :
122
122
requires :
123
123
- dependency_cache
124
124
filters :
125
125
tags :
126
126
only : /.*/
127
- - node8_webpack_latest :
127
+ - analysis :
128
128
requires :
129
129
- dependency_cache
130
130
filters :
131
131
tags :
132
132
only : /.*/
133
- - node9_webpack_latest :
133
+ - node8-latest :
134
134
requires :
135
- - dependency_cache
135
+ - analysis
136
+ - node6-latest
136
137
filters :
137
138
tags :
138
139
only : /.*/
139
- - node8_webpack_canary :
140
+ - node9-latest :
140
141
requires :
141
- - dependency_cache
142
+ - analysis
143
+ - node6-latest
142
144
filters :
143
145
tags :
144
146
only : /.*/
145
- - analysis :
147
+ - node8-canary :
146
148
requires :
147
- - node6_webpack_latest
148
- - node8_webpack_latest
149
- - node9_webpack_latest
149
+ - analysis
150
+ - node6-latest
150
151
filters :
151
152
tags :
152
153
only : /.*/
153
154
- publish :
154
155
requires :
155
- - node6_webpack_latest
156
- - node8_webpack_latest
157
- - node9_webpack_latest
158
- - analysis
156
+ - node8-latest
157
+ - node9-latest
159
158
filters :
160
159
branches :
161
160
only :
0 commit comments