Fix node CI

This commit is contained in:
Yann Stepienik 2023-03-12 18:28:53 +00:00
parent 2bc2127831
commit 45501a01d1

View file

@ -23,26 +23,20 @@ jobs:
name: set Go path
command: echo 'export PATH=$PATH:/usr/local/go/bin' >> $BASH_ENV
- run:
name: uninstall Node
command: sudo apt-get remove -y nodejs
- 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 alias default 16
- run:
name: install Node 1/3
command: curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- 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: Install GuPM
command: curl -fsSL https://azukaar.github.io/GuPM/install.sh | bash