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
741 B
YAML
36 lines
741 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, main]
|
|
pull_request:
|
|
branches: [develop, main]
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
# node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5.
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: TypeScript check
|
|
run: npm run typecheck
|
|
|
|
- name: ESLint
|
|
run: npm run lint
|
|
|
|
- name: Unit tests + coverage
|
|
run: npm run test:coverage
|
|
|
|
- name: Security audit
|
|
run: npm audit --audit-level=high
|