Skip to content

Commit

Permalink
chore: let's try with Node 20 :)
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Mar 30, 2024
1 parent 1583d5f commit 4870575
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 58 deletions.
52 changes: 26 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.19.1
nvm alias default v18.19.1
nvm install v20.11.1
nvm alias default v20.11.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.19.1
nvm use v20.11.1
node --version
- &install-chrome
name: Install Chrome
command: |
nvm use v18.19.1
nvm use v20.11.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
Expand All @@ -31,7 +31,7 @@ aliases:
- &install-deps
name: Install Global Dependencies
command: |
nvm use v18.19.1
nvm use v20.11.1
sudo rm -rf /etc/apt/sources.list.d/heroku.list
sudo apt-get update
sudo apt install npm
Expand All @@ -45,7 +45,7 @@ aliases:
- &install-yarn
name: Install Latest Yarn
command: |
nvm use v18.19.1
nvm use v20.11.1
# remove default yarn
sudo rm -rf $(dirname $(which yarn))/yarn*
# download latest
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
- yarn-packages-sonarqube-root-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Install Dependencies
command: nvm use v18.19.1 && yarn install
command: nvm use v20.11.1 && yarn install
no_output_timeout: 60m
- run:
name: Install Sonarqube scanner
Expand Down Expand Up @@ -121,10 +121,10 @@ jobs:
- yarn-packages-monorepo-root-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18.19.1 && yarn bootstrap
command: nvm use v20.11.1 && yarn bootstrap
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -151,14 +151,14 @@ jobs:
- yarn-packages-desktop-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18.19.1 && yarn bootstrap
command: nvm use v20.11.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18.19.1 && yarn build:desktop
command: nvm use v20.11.1 && yarn build:desktop
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -185,18 +185,18 @@ jobs:
- yarn-packages-api-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18.19.1 && yarn bootstrap
command: nvm use v20.11.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Packages Build
command: nvm use v18.19.1 && yarn build:package:all
command: nvm use v20.11.1 && yarn build:package:all
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18.19.1 && yarn build:api:prod:ci
command: nvm use v20.11.1 && yarn build:api:prod:ci
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand All @@ -223,18 +223,18 @@ jobs:
- yarn-packages-web-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18.19.1 && yarn bootstrap
command: nvm use v20.11.1 && yarn bootstrap
no_output_timeout: 60m
- run:
name: Run Packages Build
command: nvm use v18.19.1 && yarn build:package:all
command: nvm use v20.11.1 && yarn build:package:all
no_output_timeout: 60m
- run:
name: Run Build
command: nvm use v18.19.1 && yarn build:gauzy:prod:ci
command: nvm use v20.11.1 && yarn build:gauzy:prod:ci
no_output_timeout: 60m
- save_cache:
name: Save Yarn Package Cache
Expand Down Expand Up @@ -263,15 +263,15 @@ jobs:
- yarn-packages-test-e2e-{{ checksum "yarn.lock" }}
- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version
- run:
name: Run Bootstrap
command: nvm use v18.19.1 && yarn bootstrap
command: nvm use v20.11.1 && yarn bootstrap
no_output_timeout: 60m

- run:
name: Run API in background
command: nvm use v18.19.1 && yarn start:api:ci
command: nvm use v20.11.1 && yarn start:api:ci
background: true

# - run:
Expand Down Expand Up @@ -313,14 +313,14 @@ jobs:

- run:
name: verify Node version
command: nvm use v18.19.1 && node --version
command: nvm use v20.11.1 && node --version

- pulumi/login

- run:
name: 'Installing NPM Packages'
command: |
nvm use v18.19.1
nvm use v20.11.1
yarn bootstrap
no_output_timeout: 60m

Expand Down
10 changes: 5 additions & 5 deletions .deploy/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ARG OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
ARG REDIS_ENABLED
ARG REDIS_URL

FROM node:18.19.1-alpine3.19 AS dependencies
FROM node:20.11.1-alpine3.19 AS dependencies

LABEL maintainer="ever@ever.co"
LABEL org.opencontainers.image.source https://github.com/ever-co/ever-gauzy
Expand Down Expand Up @@ -168,7 +168,7 @@ COPY --chown=node:node decorate-angular-cli.js lerna.json package.json yarn.lock
RUN yarn install --network-timeout 1000000 --frozen-lockfile
# RUN apk del build-dependencies make gcc g++ python2 py2-setuptools vips-dev

FROM node:18.19.1-alpine3.19 AS prodDependencies
FROM node:20.11.1-alpine3.19 AS prodDependencies

ENV CI=true

Expand Down Expand Up @@ -226,7 +226,7 @@ RUN yarn install --network-timeout 1000000 --frozen-lockfile --production

RUN rm -r node_modules/@angular

FROM node:18.19.1-alpine3.19 AS development
FROM node:20.11.1-alpine3.19 AS development

USER node:node

Expand All @@ -236,7 +236,7 @@ COPY --chown=node:node --from=dependencies /wait /entrypoint.prod.sh /entrypoint
COPY --chown=node:node --from=dependencies /srv/gauzy .
COPY . .

FROM node:18.19.1-alpine3.19 AS build
FROM node:20.11.1-alpine3.19 AS build

WORKDIR /srv/gauzy

Expand Down Expand Up @@ -272,7 +272,7 @@ RUN if [ "$NODE_ENV" = "production" ]; then \

RUN yarn build:api:prod:docker

FROM node:18.19.1-alpine3.19 AS production
FROM node:20.11.1-alpine3.19 AS production

WORKDIR /srv/gauzy

Expand Down
6 changes: 3 additions & 3 deletions .deploy/webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ARG GAUZY_GITHUB_APP_ID
ARG JITSU_BROWSER_URL
ARG JITSU_BROWSER_WRITE_KEY

FROM node:18.19.1-alpine3.19 AS dependencies
FROM node:20.11.1-alpine3.19 AS dependencies

LABEL maintainer="ever@ever.co"
LABEL org.opencontainers.image.source https://github.com/ever-co/ever-gauzy
Expand Down Expand Up @@ -83,7 +83,7 @@ COPY --chown=node:node decorate-angular-cli.js lerna.json package.json yarn.lock
RUN yarn install --network-timeout 1000000 --frozen-lockfile && yarn cache clean
# RUN apk del build-dependencies make gcc g++ python2 py2-setuptools vips-dev

FROM node:18.19.1-alpine3.19 AS development
FROM node:20.11.1-alpine3.19 AS development

USER node:node

Expand All @@ -93,7 +93,7 @@ COPY --chown=node:node --from=dependencies /wait /entrypoint.compose.sh /entrypo
COPY --chown=node:node --from=dependencies /srv/gauzy .
COPY . .

FROM node:18.19.1-alpine3.19 AS build
FROM node:20.11.1-alpine3.19 AS build

WORKDIR /srv/gauzy

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/desktop-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: buildjet/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Change permissions
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/desktop-app-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: buildjet/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Change permissions
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/desktop-timer-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: buildjet/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Change permissions
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/desktop-timer-app-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: buildjet/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Change permissions
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/server-api-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: buildjet/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Change permissions
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18.19.1
node-version: 20.11.1
cache: 'yarn'

- name: Fix node-gyp and Python
Expand Down
Loading

0 comments on commit 4870575

Please sign in to comment.