update backend/frontend : nodejs version + CI - #1815

This commit is contained in:
Laurent GAY
2025-10-24 21:30:46 +02:00
committed by setop
parent 5d0cdb6116
commit b6cd5e8c3b
3 changed files with 18 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ lint-elixir:
codequality: codeclimate.json
lint-front:
image: node:20
image: node:22
stage: check
before_script:
- export EXITVALUE=0
@@ -80,7 +80,7 @@ lint-front:
build-frontend:
stage: build-js
image: node:20
image: node:22
before_script:
- apt update
- apt install -y --no-install-recommends python3 build-essential webp imagemagick gifsicle jpegoptim optipng pngquant
@@ -101,7 +101,12 @@ deps:
- mix deps.get
script:
- export EXITVALUE=0
- mix hex.outdated || export EXITVALUE=1
- mix hex.outdated
- |
if [ -z "$(mix hex.outdated | grep 'Update possible')" ]
then
export EXITVALUE=1
fi
- npm outdated || export EXITVALUE=1
- exit $EXITVALUE
allow_failure: true
@@ -142,7 +147,7 @@ exunit:
expire_in: 30 days
vitest:
image: node:20
image: node:22
stage: test
variables:
LANG: "fr_FR.UTF-8"
@@ -173,6 +178,7 @@ e2e:
variables:
MIX_ENV: "e2e"
before_script:
- mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install nodejs -yq
- rm -rf ~/.hex/cache.ets
- mix deps.get
- mix ecto.create