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>
36 lines
931 B
YAML
36 lines
931 B
YAML
name: SonarQube (cron)
|
|
|
|
# Analyse SonarQube isolee du pipeline de deploiement : ne bloque jamais la CI ni les releases.
|
|
# Declenchee uniquement par cron (et manuellement via "Run workflow"), jamais sur push/PR.
|
|
on:
|
|
schedule:
|
|
- cron: '0 3 * * *'
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
sonarqube:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ secrets.SONAR_TOKEN != '' }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Unit tests + coverage
|
|
run: npm run test:coverage
|
|
|
|
- name: SonarQube analysis
|
|
uses: sonarsource/sonarqube-scan-action@master
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|