File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 84
84
with :
85
85
# npm cache files are stored in `~/.npm` on Linux/macOS
86
86
path : ~/.npm
87
- key : ${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
87
+ key : ${{ runner.OS }}-${{ matrix.node-version }}-${{ matrix.webpack-version }}-${{ hashFiles('**/package-lock.json') }}
88
+ restore-keys : |
89
+ ${{ runner.OS }}-${{ matrix.node-version }}-${{ matrix.webpack-version }}-
90
+ ${{ runner.OS }}-
88
91
89
92
- name : Install dependencies
90
93
if : steps.cache.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ const setupExitSignals = require('./utils/setupExitSignals');
34
34
const findPort = require ( './utils/findPort' ) ;
35
35
const schema = require ( './options.json' ) ;
36
36
37
- if ( ! process . env . WEBPACK_DEV_SERVER ) {
38
- process . env . WEBPACK_DEV_SERVER = true ;
37
+ if ( ! process . env . WEBPACK_SERVE ) {
38
+ process . env . WEBPACK_SERVE = true ;
39
39
}
40
40
41
41
class Server {
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ describe('Server', () => {
164
164
} ) ;
165
165
} ) ;
166
166
167
- describe ( 'WEBPACK_DEV_SERVER environment variable' , ( ) => {
167
+ describe ( 'WEBPACK_SERVE environment variable' , ( ) => {
168
168
const OLD_ENV = process . env ;
169
169
170
170
beforeEach ( ( ) => {
@@ -173,19 +173,19 @@ describe('Server', () => {
173
173
174
174
process . env = { ...OLD_ENV } ;
175
175
176
- delete process . env . WEBPACK_DEV_SERVER ;
176
+ delete process . env . WEBPACK_SERVE ;
177
177
} ) ;
178
178
179
179
afterEach ( ( ) => {
180
180
process . env = OLD_ENV ;
181
181
} ) ;
182
182
183
183
it ( 'should be present' , ( ) => {
184
- expect ( process . env . WEBPACK_DEV_SERVER ) . toBeUndefined ( ) ;
184
+ expect ( process . env . WEBPACK_SERVE ) . toBeUndefined ( ) ;
185
185
186
186
require ( '../../lib/Server' ) ;
187
187
188
- expect ( process . env . WEBPACK_DEV_SERVER ) . toBe ( true ) ;
188
+ expect ( process . env . WEBPACK_SERVE ) . toBe ( true ) ;
189
189
} ) ;
190
190
} ) ;
191
191
} ) ;
You can’t perform that action at this time.
0 commit comments