Skip to content

Commit 23ee54b

Browse files
committed
ci: test for node nightly compat
TICKET: VL-5111
1 parent 73b0cb6 commit 23ee54b

File tree

7 files changed

+7849
-4196
lines changed

7 files changed

+7849
-4196
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,48 @@ jobs:
364364
- name: Verify all packages exist on npm
365365
uses: ./.github/actions/verify-npm-packages
366366

367+
npm-install-compatibility:
368+
name: npm install / ${{ matrix.label }}
369+
runs-on: ubuntu-latest
370+
needs: [unit-test, code-quality, license-analysis, browser-test, docker-build, verify-npm-packages, dockerfile-check]
371+
continue-on-error: ${{ matrix.experimental }}
372+
strategy:
373+
fail-fast: false
374+
matrix:
375+
include:
376+
- label: Node.js v25.8.2 (latest stable)
377+
node-version: v25.8.2
378+
node-dist-url: https://nodejs.org/dist/v25.8.2/node-v25.8.2-linux-x64.tar.gz
379+
node-checksum: e06c7069012d40914c57b31157c69d4ce83ea1fe9d63bbb7d26e0509a4535d21
380+
experimental: false
381+
- label: Node.js v26.0.0-nightly2026032874509b166a
382+
node-version: v26.0.0-nightly2026032874509b166a
383+
node-dist-url: https://nodejs.org/download/nightly/v26.0.0-nightly2026032874509b166a/node-v26.0.0-nightly2026032874509b166a-linux-x64.tar.gz
384+
node-checksum: 6ad71e251fb934af5657e71b1af9eaa403706303ff40ad030d1c485497c8583e
385+
experimental: true
386+
387+
steps:
388+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
389+
with:
390+
ref: ${{ github.event.pull_request.head.sha }}
391+
392+
- name: Install Node.js ${{ matrix.node-version }}
393+
run: |
394+
FILENAME="$(basename '${{ matrix.node-dist-url }}')"
395+
curl -fsSL "${{ matrix.node-dist-url }}" -o "${FILENAME}"
396+
echo "${{ matrix.node-checksum }} ${FILENAME}" | sha256sum --check
397+
mkdir -p "${HOME}/node-install"
398+
tar -xz -C "${HOME}/node-install" --strip-components=1 < "${FILENAME}"
399+
echo "${HOME}/node-install/bin" >> "$GITHUB_PATH"
400+
401+
- name: Node/npm info
402+
run: |
403+
node --version
404+
npm --version
405+
406+
- name: npm install
407+
run: npm install --ignore-scripts
408+
367409
dockerfile-check:
368410
runs-on: ubuntu-latest
369411

modules/web-demo/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@
6969
"lodash": "^4.17.15",
7070
"react": "^18.0.0",
7171
"react-dom": "^18.0.0",
72-
"react-json-view": "^1.21.3",
72+
"react-json-view-lite": "^2.5.0",
7373
"react-router-dom": "6.3.0",
7474
"styled-components": "^5.3.5"
7575
},
7676
"devDependencies": {
77-
"@cypress/react": "^8.0.0",
77+
"@cypress/react": "^9.0.0",
7878
"@cypress/webpack-dev-server": "^4.0.0",
7979
"@testing-library/cypress": "^10.0.1",
80-
"@types/react": "17.0.24",
81-
"@types/react-dom": "17.0.16",
80+
"@types/react": "^18.0.0",
81+
"@types/react-dom": "^18.0.0",
8282
"@types/styled-components": "5.1.25",
8383
"chai": "^4.3.6",
8484
"clean-webpack-plugin": "^4.0.0",
@@ -108,7 +108,7 @@
108108
]
109109
},
110110
"resolutions": {
111-
"@types/react": "17.0.24",
112-
"@types/react-dom": "17.0.16"
111+
"@types/react": "^18.0.0",
112+
"@types/react-dom": "^18.0.0"
113113
}
114114
}

modules/web-demo/src/components/BitGoAPI/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import ReactJson from 'react-json-view';
2+
import { JsonView } from 'react-json-view-lite';
3+
import 'react-json-view-lite/dist/index.css';
34
import { BitGoAPI } from '@bitgo/sdk-api';
45

56
const sdk = new BitGoAPI();
@@ -9,7 +10,7 @@ const BGApi = () => {
910
<React.Fragment>
1011
<h3>BitGo SDK API</h3>
1112
<br />
12-
<ReactJson src={sdk} />
13+
<JsonView data={sdk} />
1314
</React.Fragment>
1415
);
1516
};

modules/web-demo/src/components/BitGoJS/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
2-
import ReactJson from 'react-json-view';
2+
import { JsonView } from 'react-json-view-lite';
3+
import 'react-json-view-lite/dist/index.css';
34

45
import { BitGo } from 'bitgo';
56

@@ -10,7 +11,7 @@ const BitGoJS = () => {
1011
<React.Fragment>
1112
<h3>BitGoJS SDK</h3>
1213
<br />
13-
<ReactJson src={sdk} />
14+
<JsonView data={sdk} />
1415
</React.Fragment>
1516
);
1617
};

modules/web-demo/src/components/EcdsaChallenge/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState } from 'react';
22
import { EcdsaTypes, EcdsaRangeProof } from '@bitgo/sdk-lib-mpc';
3-
import ReactJson from 'react-json-view';
3+
import { JsonView } from 'react-json-view-lite';
4+
import 'react-json-view-lite/dist/index.css';
45

56
const EcdsaChallenge = () => {
67
const [challenge, setChallenge] = useState<
@@ -28,11 +29,7 @@ const EcdsaChallenge = () => {
2829
<br />
2930
{challenge ? (
3031
<div>
31-
<ReactJson
32-
src={challenge}
33-
displayDataTypes={true}
34-
enableClipboard={true}
35-
/>
32+
<JsonView data={challenge} />
3633
<h4>Time to generate (s)</h4>
3734
<h5>{totalTime}</h5>
3835
</div>

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@
126126
"sjcl": "npm:@bitgo/sjcl@1.0.1",
127127
"picomatch": ">=2.3.2"
128128
},
129+
"overrides": {
130+
"@types/react": "^18.0.0",
131+
"@types/react-dom": "^18.0.0",
132+
"@solana/web3.js": "1.95.8",
133+
"handlebars": "4.7.9",
134+
"nise": {
135+
"path-to-regexp": "8.4.0"
136+
},
137+
"express": {
138+
"path-to-regexp": "0.1.13"
139+
}
140+
},
129141
"workspaces": [
130142
"modules/*"
131143
],

0 commit comments

Comments
 (0)