node:sqlite (used by coachStore.ts, memory/store.ts, meetingStore.ts) requires Node >= 22.5. CI/release workflows were pinned to Node 20, breaking test collection entirely (0% coverage, 63 errors). Also adds engines.node to package.json to catch this earlier elsewhere. SonarQube analysis moved out of ci.yml into its own cron-triggered workflow (sonarqube.yml, daily + manual dispatch) so a failed scan or quality gate never blocks CI or releases. The SonarQube server is already running on the VPS (sonar.forgebase.fr), so docker-compose.sonar.yml is no longer needed to deploy it. Also documents the forgebase.fr/releases/ Caddy setup for electron-updater. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
# node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5.
|
|
node-version: '22'
|
|
- run: npm ci
|
|
- run: npm run build:win
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: max-windows
|
|
path: dist/*.exe
|
|
|
|
build-mac:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
# node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5.
|
|
node-version: '22'
|
|
- run: npm ci
|
|
- run: npm run build:mac
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: max-mac
|
|
path: dist/*.dmg
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
# node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5.
|
|
node-version: '22'
|
|
- run: npm ci
|
|
- run: npm run build:linux
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: max-linux
|
|
path: dist/*.AppImage
|