From dada7b9858edc59402bf93f3de8885271c5151be Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Fri, 29 Mar 2024 10:57:53 +0100 Subject: [PATCH] chore: circle builds --- .circleci/config.yml | 54 ++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a2848c8ed5a..af9cd157e6c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - node: circleci/node@5.2.0 + node: cimg/node@5.2.0 pulumi: pulumi/pulumi@2.1.0 aliases: @@ -10,18 +10,18 @@ aliases: command: | echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV - nvm install v18 - nvm alias default v18 + nvm install v18.19.1 + nvm alias default v18.19.1 echo 'export NODE_OPTIONS=--max-old-space-size=12288' >> $BASH_ENV echo 'export NG_CLI_ANALYTICS=false' >> $BASH_ENV source $BASH_ENV - nvm use v18 + nvm use v18.19.1 node --version - &install-chrome name: Install Chrome command: | - nvm use v18 + nvm use v18.19.1 sudo apt install -y libappindicator3-1 curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome.deb @@ -31,7 +31,7 @@ aliases: - &install-deps name: Install Global Dependencies command: | - nvm use v18 + nvm use v18.19.1 sudo rm -rf /etc/apt/sources.list.d/heroku.list sudo apt-get update sudo apt install npm @@ -45,7 +45,7 @@ aliases: - &install-yarn name: Install Latest Yarn command: | - nvm use v18 + nvm use v18.19.1 # remove default yarn sudo rm -rf $(dirname $(which yarn))/yarn* # download latest @@ -77,10 +77,10 @@ jobs: - yarn-packages-sonarqube-root-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Install Dependencies - command: nvm use v18 && yarn install + command: nvm use v18.19.1 && yarn install no_output_timeout: 60m - run: name: Install Sonarqube scanner @@ -121,10 +121,10 @@ jobs: - yarn-packages-monorepo-root-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Run Bootstrap - command: nvm use v18 && yarn bootstrap + command: nvm use v18.19.1 && yarn bootstrap no_output_timeout: 60m - save_cache: name: Save Yarn Package Cache @@ -151,14 +151,14 @@ jobs: - yarn-packages-desktop-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Run Bootstrap - command: nvm use v18 && yarn bootstrap + command: nvm use v18.19.1 && yarn bootstrap no_output_timeout: 60m - run: name: Run Build - command: nvm use v18 && yarn build:desktop + command: nvm use v18.19.1 && yarn build:desktop no_output_timeout: 60m - save_cache: name: Save Yarn Package Cache @@ -185,18 +185,18 @@ jobs: - yarn-packages-api-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Run Bootstrap - command: nvm use v18 && yarn bootstrap + command: nvm use v18.19.1 && yarn bootstrap no_output_timeout: 60m - run: name: Run Packages Build - command: nvm use v18 && yarn build:package:all + command: nvm use v18.19.1 && yarn build:package:all no_output_timeout: 60m - run: name: Run Build - command: nvm use v18 && yarn build:api:prod:ci + command: nvm use v18.19.1 && yarn build:api:prod:ci no_output_timeout: 60m - save_cache: name: Save Yarn Package Cache @@ -223,18 +223,18 @@ jobs: - yarn-packages-web-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Run Bootstrap - command: nvm use v18 && yarn bootstrap + command: nvm use v18.19.1 && yarn bootstrap no_output_timeout: 60m - run: name: Run Packages Build - command: nvm use v18 && yarn build:package:all + command: nvm use v18.19.1 && yarn build:package:all no_output_timeout: 60m - run: name: Run Build - command: nvm use v18 && yarn build:gauzy:prod:ci + command: nvm use v18.19.1 && yarn build:gauzy:prod:ci no_output_timeout: 60m - save_cache: name: Save Yarn Package Cache @@ -263,15 +263,15 @@ jobs: - yarn-packages-test-e2e-{{ checksum "yarn.lock" }} - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - run: name: Run Bootstrap - command: nvm use v18 && yarn bootstrap + command: nvm use v18.19.1 && yarn bootstrap no_output_timeout: 60m - run: name: Run API in background - command: nvm use v18 && yarn start:api:ci + command: nvm use v18.19.1 && yarn start:api:ci background: true # - run: @@ -313,14 +313,14 @@ jobs: - run: name: verify Node version - command: nvm use v18 && node --version + command: nvm use v18.19.1 && node --version - pulumi/login - run: name: 'Installing NPM Packages' command: | - nvm use v18 + nvm use v18.19.1 yarn bootstrap no_output_timeout: 60m