message: Improve node.js version testing
diff: @@ -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-version: ["12", "14", "16"]
  - test-chrome:
  requires:
  - build
  @@ -63,7 +66,7 @@ jobs:
  root: .
  paths:
  - packages/*/build/*
  - test:
  + test-backends:
  parameters:
  simapp:
  type: string
  @@ -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-version:
  + 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
  @@ -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=(
  + ["12"]="https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.22.1-deb-1nodesource1_amd64.deb"
  + ["14"]="https://deb.nodesource.com/node_14.x/pool/main/n/nodejs/nodejs_14.18.0-deb-1nodesource1_amd64.deb"
  + ["16"]="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-version >>]}"
  sudo dpkg -i "$HOME/nodejs.deb"
  - run:
  name: Install yarn
  