Merge pull request #1020 from cosmos/nodejs-versions

Update Nodejs versions
This commit is contained in:
Simon Warta 2022-01-27 23:42:48 +01:00 committed by GitHub
commit c22757ceb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,15 +23,18 @@ workflows:
- lint: - lint:
requires: requires:
- build - build
- test: - test-backends:
requires: requires:
- build - build
matrix: matrix:
parameters: parameters:
simapp: ["simapp42", "simapp44"] simapp: ["simapp42", "simapp44"]
- test-node-v14: - test-node:
requires: requires:
- build - build
matrix:
parameters:
node-version: ["12", "14", "16"]
- test-chrome: - test-chrome:
requires: requires:
- build - build
@ -42,7 +45,7 @@ workflows:
jobs: jobs:
build: build:
docker: docker:
- image: circleci/node:12-buster - image: circleci/node:16.13-bullseye
steps: steps:
- run: - run:
name: Install Git Large File Storage (LFS) name: Install Git Large File Storage (LFS)
@ -63,7 +66,7 @@ jobs:
root: . root: .
paths: paths:
- packages/*/build/* - packages/*/build/*
test: test-backends:
parameters: parameters:
simapp: simapp:
type: string type: string
@ -187,7 +190,10 @@ jobs:
./scripts/<< parameters.simapp >>/slow_stop.sh ./scripts/<< parameters.simapp >>/slow_stop.sh
./scripts/wasmd/stop.sh ./scripts/wasmd/stop.sh
./scripts/launchpad/stop.sh ./scripts/launchpad/stop.sh
test-node-v14: test-node:
parameters:
node-version:
type: string
machine: machine:
# We can't use a containerized environment since it requires remote docker to start custom containers. # 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 # 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 name: Install nodejs
# In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow # In the current image, `sudo apt install nodejs` requires `sudo apt update` which is too slow
command: | 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" sudo dpkg -i "$HOME/nodejs.deb"
- run: - run:
name: Install yarn name: Install yarn
@ -515,7 +526,7 @@ jobs:
./scripts/launchpad/stop.sh ./scripts/launchpad/stop.sh
docs-build: docs-build:
docker: docker:
- image: circleci/node:12-buster - image: circleci/node:16.13-bullseye
steps: steps:
- run: - run:
name: Install Git Large File Storage (LFS) name: Install Git Large File Storage (LFS)
@ -546,7 +557,7 @@ jobs:
paths: docs_deployment paths: docs_deployment
docs-deploy: docs-deploy:
docker: docker:
- image: circleci/node:12-buster - image: circleci/node:16.13-bullseye
steps: steps:
- attach_workspace: - attach_workspace:
at: . at: .
@ -564,7 +575,7 @@ jobs:
command: npx gh-pages@3.0.0 --message "Update docs [skip ci]" --dist docs_deployment --user "CI deployment <ci@cosmwasm.com>" --repo "git@github.com:cosmos/cosmjs.git" command: npx gh-pages@3.0.0 --message "Update docs [skip ci]" --dist docs_deployment --user "CI deployment <ci@cosmwasm.com>" --repo "git@github.com:cosmos/cosmjs.git"
lint: lint:
docker: docker:
- image: circleci/node:12-buster - image: circleci/node:16.13-bullseye
steps: steps:
- run: - run:
name: Install Git Large File Storage (LFS) name: Install Git Large File Storage (LFS)