Skip to content

Commit

Permalink
Improve node.js version testing
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 27, 2022
1 parent 1c70d9c commit f72533f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ workflows:
- lint:
requires:
- build
- test:
- test-backends:
requires:
- build
matrix:
parameters:
simapp: ["simapp42", "simapp44"]
- test-node-v14:
- test-node:
requires:
- build
matrix:
parameters:
node: ["node12", "node14", "node16"]
- test-chrome:
requires:
- build
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:
root: .
paths:
- packages/*/build/*
test:
test-backends:
parameters:
simapp:
type: string
Expand Down Expand Up @@ -187,7 +190,10 @@ jobs:
./scripts/<< parameters.simapp >>/slow_stop.sh
./scripts/wasmd/stop.sh
./scripts/launchpad/stop.sh
test-node-v14:
test-node:
parameters:
node:
type: string
machine:
# We can't use a containerized environment since it requires remote docker to start custom containers.
# However, we can't access the remote docker's network from the primary container. This is a
Expand Down Expand Up @@ -241,7 +247,12 @@ jobs:
name: Install nodejs
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
command: |
wget -O "$HOME/nodejs.deb" https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.18.0-deb-1nodesource1_amd64.deb
declare -A node_links=(
["node12"]="https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb"
["node14"]="https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.18.0-deb-1nodesource1_amd64.deb"
["node16"]="https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.13.2-deb-1nodesource1_amd64.deb"
)
wget -O "$HOME/nodejs.deb" "${node_links[<< parameters.node >>]}"
sudo dpkg -i "$HOME/nodejs.deb"
- run:
name: Install yarn
Expand Down

0 comments on commit f72533f

Please sign in to comment.