fix(ci): bump Node to 22 for node:sqlite, move SonarQube off the deploy pipeline #1

Merged
w-vandal merged 10 commits from develop into main 2026-10-31 20:52:07 +00:00
224 changed files with 135 additions and 18 deletions
Showing only changes of commit 1c2f002eb3 - Show all commits
+6
View File
@@ -10,6 +10,11 @@ on:
jobs: jobs:
quality: quality:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Le code de l'app vit dans le sous-dossier "Max Avatar" (la racine du depot garde CLAUDE.md,
# README.md, docs/, .gitea/, .husky/, .vscode/, .claude/, docker-compose*.yml).
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -22,6 +27,7 @@ jobs:
# la transformation plante avec "Cannot bundle Node.js built-in node:sqlite". # la transformation plante avec "Cannot bundle Node.js built-in node:sqlite".
node-version: '24' node-version: '24'
cache: 'npm' cache: 'npm'
cache-dependency-path: 'Max Avatar/package-lock.json'
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
+12 -3
View File
@@ -8,6 +8,9 @@ on:
jobs: jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -19,10 +22,13 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-windows name: max-windows
path: dist/*.exe path: Max Avatar/dist/*.exe
build-mac: build-mac:
runs-on: macos-latest runs-on: macos-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -34,10 +40,13 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-mac name: max-mac
path: dist/*.dmg path: Max Avatar/dist/*.dmg
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
@@ -49,4 +58,4 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: max-linux name: max-linux
path: dist/*.AppImage path: Max Avatar/dist/*.AppImage
+6
View File
@@ -11,6 +11,9 @@ jobs:
sonarqube: sonarqube:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ secrets.SONAR_TOKEN != '' }} if: ${{ secrets.SONAR_TOKEN != '' }}
defaults:
run:
working-directory: Max Avatar
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -21,6 +24,7 @@ jobs:
with: with:
node-version: '24' node-version: '24'
cache: 'npm' cache: 'npm'
cache-dependency-path: 'Max Avatar/package-lock.json'
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
@@ -30,6 +34,8 @@ jobs:
- name: SonarQube analysis - name: SonarQube analysis
uses: sonarsource/sonarqube-scan-action@master uses: sonarsource/sonarqube-scan-action@master
with:
projectBaseDir: Max Avatar
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
+1 -8
View File
@@ -1,12 +1,5 @@
node_modules node_modules
dist dist
out out
.DS_Store
.eslintcache
*.log*
.env
.env.local
coverage coverage
playwright-report .DS_Store
test-results
.husky/_
+1 -1
View File
@@ -1 +1 @@
npx lint-staged cd "Max Avatar" && npx lint-staged
+4 -4
View File
@@ -5,10 +5,10 @@
"name": "Debug Main Process", "name": "Debug Main Process",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}/Max Avatar",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", "runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite",
"windows": { "windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" "runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite.cmd"
}, },
"runtimeArgs": ["--sourcemap"], "runtimeArgs": ["--sourcemap"],
"env": { "env": {
@@ -20,7 +20,7 @@
"port": 9222, "port": 9222,
"request": "attach", "request": "attach",
"type": "chrome", "type": "chrome",
"webRoot": "${workspaceFolder}/src/renderer", "webRoot": "${workspaceFolder}/Max Avatar/src/renderer",
"timeout": 60000, "timeout": 60000,
"presentation": { "presentation": {
"hidden": true "hidden": true
+12
View File
@@ -0,0 +1,12 @@
node_modules
dist
out
.DS_Store
.eslintcache
*.log*
.env
.env.local
coverage
playwright-report
test-results
.husky/_
+3 -1
View File
@@ -1,4 +1,6 @@
FROM node:20-alpine AS base # node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5, mais
# Vite/Rolldown ne le reconnaissent comme built-in qu'a partir de Node 24.
FROM node:24-alpine AS base
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --ignore-scripts RUN npm ci --ignore-scripts

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Some files were not shown because too many files have changed in this diff Show More