Commit e771d43 1 parent db26977 commit e771d43 Copy full SHA for e771d43
File tree 6 files changed +18
-16
lines changed
6 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 18
18
- name : Install Node
19
19
uses : actions/setup-node@v2
20
20
with :
21
- node-version : " 16 "
21
+ node-version : " 18 "
22
22
cache : npm
23
23
cache-dependency-path : ' src/*/package-lock.json'
24
24
- name : Build and Test
44
44
fail-fast : false
45
45
matrix :
46
46
include :
47
- - { node: '14' }
48
47
- { node: '16' }
49
- - { node: '17' }
48
+ - { node: '18' }
49
+ - { node: '19' }
50
50
steps :
51
51
- name : Install Node
52
52
uses : actions/setup-node@v2
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - ' 14 '
3
+ - ' 18 '
4
4
- node
5
5
os : linux
6
6
addons :
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ before_script:
10
10
- tar -xf geckodriver-linux64.tar.gz
11
11
- install geckodriver /usr/local/bin
12
12
13
- node:14 :
14
- image : node:14
13
+ node:16 :
14
+ image : node:16
15
15
script :
16
16
- PARALLEL_BUILD=false PARALLEL_E2E=false E2E_LAUNCH_DELAY=5 EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test
17
17
18
- node:16 :
19
- image : node:16
18
+ node:18 :
19
+ image : node:18
20
20
script :
21
21
- PARALLEL_BUILD=false PARALLEL_E2E=false E2E_LAUNCH_DELAY=5 EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test
22
22
Original file line number Diff line number Diff line change 1
- FROM node:14 -alpine AS builder
1
+ FROM node:18 -alpine AS builder
2
2
RUN apk add --no-cache \
3
3
g++ \
4
4
git \
@@ -9,7 +9,7 @@ WORKDIR /refacto
9
9
COPY . .
10
10
RUN DISABLE_OPENCOLLECTIVE=1 npm install --production
11
11
12
- FROM node:14 -alpine
12
+ FROM node:18 -alpine
13
13
RUN addgroup -S refacto && adduser -S refacto -G refacto
14
14
WORKDIR /refacto
15
15
COPY --from=builder /refacto /refacto
Original file line number Diff line number Diff line change @@ -169,15 +169,17 @@ installed (see [Running tests](#running-tests)).
169
169
170
170
### ` error:0308010C:digital envelope routines::unsupported `
171
171
172
- This project uses an old version of WebPack which is incompatible with Node 17. You can either
173
- downgrade to Node 16, or use the following command to build :
172
+ This project uses an old version of WebPack which is incompatible with Node 17+.
173
+ If you see this error, set the following environment variable for the command you are running :
174
174
175
175
``` bash
176
- NODE_OPTIONS=--openssl-legacy-provider npm run build
176
+ NODE_OPTIONS=--openssl-legacy-provider
177
177
```
178
178
179
- (same change for ` test ` etc.)
180
-
181
179
Specifically, WebPack uses an old OpenSSL algorithm for generating file hashes. This is not a
182
180
security risk, and the resulting executable can (and should) be executed without using the
183
181
legacy provider.
182
+
183
+ Fixing this properly requires updating to the next major version of WebPack, which is unfortunately
184
+ not compatible with the NeutrinoJS build system used here. It will be necessary to replace neutrino
185
+ with per-tool configuration to do the update.
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"scripts" : {
5
5
"prebuild" : " rewrite-tsconfig" ,
6
- "build" : " NODE_OPTIONS=--openssl-legacy-provider --mode production" ,
6
+ "build" : " NODE_OPTIONS=--openssl-legacy-provider webpack --mode production" ,
7
7
"start" : " NODE_OPTIONS=--openssl-legacy-provider webpack --watch --mode development" ,
8
8
"lint:eslint" : " rewrite-tsconfig && eslint --format codeframe --report-unused-disable-directives --max-warnings=0 src" ,
9
9
"lint:tsc" : " rewrite-tsconfig && tsc" ,
You can’t perform that action at this time.
0 commit comments