Fix node CI

This commit is contained in:
Yann Stepienik 2023-03-12 18:33:48 +00:00
parent 1f2396ed4a
commit 734786c9dd

View file

@ -23,22 +23,26 @@ jobs:
name: set Go path
command: echo 'export PATH=$PATH:/usr/local/go/bin' >> $BASH_ENV
- run:
name: Swap node versions
command: |
set +e
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v16
nvm use 16
name: install Node 1/3
command: curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
- run:
name: install Node 2/3
command: sudo bash ./nodesource_setup.sh
- run:
name: install Node 3/3
command: sudo apt-get install -y nodejs
- run:
name: Check Node Version
command: node -v
- run:
name: Check Node Version
command: which node
- run:
name: Install GuPM
command: curl -fsSL https://azukaar.github.io/GuPM/install.sh | bash