mirror of
https://github.com/siop-spelev/siop2.git
synced 2026-08-08 12:41:54 +00:00
ci(r0.12): pipeline GitHub Actions — ci-contract, api (couverture ≥ 70 %), web
- ci-contract : régénère docs/openapi.json + schema.d.ts et échoue au moindre diff — la règle d'or (ADR-001) devient bloquante - api : services PostgreSQL 18 + Redis, prisma migrate deploy, typecheck, Jest avec coverageThreshold global 70 % (mesuré : 97,5 % stmts / 90,7 % branches) - web : typecheck + vitest + build de production - test unitaire PermissionsGuard (23 tests au total) ; badge CI au README Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,5 +10,9 @@ module.exports = {
|
||||
},
|
||||
setupFiles: ['<rootDir>/test/setup-env.ts'],
|
||||
collectCoverageFrom: ['src/**/*.ts', '!src/main.ts'],
|
||||
// Exigence non fonctionnelle (01-cadrage) : couverture backend ≥ 70 % BLOQUANTE
|
||||
coverageThreshold: {
|
||||
global: { statements: 70, branches: 70, functions: 70, lines: 70 },
|
||||
},
|
||||
testTimeout: 30000,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user