Skip to content

Commit

Permalink
CI: Run tests with miniumum dependencies on the newest and oldest nod…
Browse files Browse the repository at this point in the history
…e.js
  • Loading branch information
cameel committed Jan 24, 2025
1 parent 0f106b9 commit 1ea5caa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ workflows:
jobs:
- check-coding-style
- node-v12
- node-v12:
name: node-v12-min-dependencies
min_dependencies: true
- node-v14
- node-v16
- node-v18
- node-v20
- node-current:
run_coveralls: true
- node-current:
name: node-current-min-dependencies
min_dependencies: true
- build-package
- hardhat-sample-project: *requires_package
- cli-smoke-test: *requires_package
Expand Down Expand Up @@ -167,10 +173,22 @@ jobs:
run_coveralls:
type: boolean
default: false
min_dependencies:
description: "Install the oldest dependencies still matching ranges specified in package.json"
type: boolean
default: false
steps:
# We want the default npm here. Older one might not work with older node.js
- show-npm-version
- checkout
- when:
condition: <<parameters.min_dependencies>>
steps:
- run:
name: Force oldest supported dependency versions in package.json
command: |
min_package_json=$(.circleci/package-json-with-min-dependencies.sh)
echo "$min_package_json" > package.json
- install-dependencies:
cache-id: solc-js
- run:
Expand Down

0 comments on commit 1ea5caa

Please sign in to comment.