Files
ForgeBase/.gitea/workflows/ci.yml
T
williamandClaude Sonnet 5 0e7b7092ae
CI / quality (push) Failing after 9m2s
CI / quality (pull_request) Failing after 7m31s
fix(ci): bump Node to 22 for node:sqlite, move SonarQube off the deploy pipeline
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>
2026-10-31 09:43:43 +01:00

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