Skip to content

Commit 96304a9

Browse files
committed
CI: Run tests with miniumum dependencies on the newest and oldest node.js
1 parent 4a6481b commit 96304a9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ workflows:
1010
- check-coding-style
1111
- node-v10
1212
- node-v12
13+
- node-v12
14+
name: node-v12-min-dependencies
15+
min_dependencies: true
1316
- node-v14
1417
- node-v16
1518
- node-v18
1619
- node-v20
1720
- node-current:
1821
run_coveralls: true
22+
- node-current:
23+
name: node-current-min-dependencies
24+
min_dependencies: true
1925
- build-package
2026
- hardhat-sample-project: *requires_package
2127
- cli-smoke-test: *requires_package
@@ -168,10 +174,22 @@ jobs:
168174
run_coveralls:
169175
type: boolean
170176
default: false
177+
min_dependencies:
178+
description: "Install the oldest dependencies still matching ranges specified in package.json"
179+
type: boolean
180+
default: false
171181
steps:
172182
# We want the default npm here. Older one might not work with older node.js
173183
- show-npm-version
174184
- checkout
185+
- when:
186+
condition: <<parameters.min_dependencies>>
187+
steps:
188+
- run:
189+
name: Force oldest supported dependency versions in package.json
190+
command: |
191+
min_package_json=$(.circleci/package-json-with-min-dependencies.sh)
192+
echo "$min_package_json" > package.json
175193
- install-dependencies:
176194
cache-id: solc-js
177195
- run:

0 commit comments

Comments
 (0)