CI sur Gitea Actions par le workflow commun avalon-vanguard/ci

.gitea/workflows/ci.yml appelle node.yml@v1 sur la même matrice (Node 20.x,
22.x, 24.x) et les mêmes déclencheurs que .github/workflows/ci.yml. Comme
node.yml ne connaît que lint, typecheck, test, build et check :
- « typecheck » renvoie à « type-check » ;
- « check » enchaîne, dans l'ordre de la CI GitHub, les contrôles
  post-build : points d'entrée publiés, démo, check:types, check:docs,
  check:docs-sync.

Les cinq « node -e » de chargement des points d'entrée passent dans
scripts/check-entry-points.mjs, que la CI GitHub appelle aussi : les deux
CI vérifient la même chose.

node.yml lance « npm test » et non « test:coverage » : vitest.config.ts ne
fixe aucun seuil et rien ne lit le rapport lcov, donc ce sont les mêmes
tests qui décident. La CI GitHub garde test:coverage.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-01 17:03:33 +02:00
co-authored by Claude Opus 5.5
parent 68d5d46ec0
commit e4b8c0f6aa
4 changed files with 46 additions and 6 deletions
+1 -6
View File
@@ -34,12 +34,7 @@ jobs:
- name: Build
run: npm run build
- name: Verify published entry points load
run: |
node --input-type=module -e "import * as m from './dist/esm/index.js'; if (typeof m.toInstance !== 'function') throw new Error('ESM entry point broken');"
node --input-type=commonjs -e "const m = require('./dist/cjs/index.js'); if (typeof m.toInstance !== 'function') throw new Error('CJS entry point broken');"
node --input-type=module -e "import { standardDecorators } from './dist/esm/vite.js'; if (standardDecorators().enforce !== 'pre') throw new Error('ESM cereale/vite broken');"
node --input-type=commonjs -e "const { standardDecorators } = require('./dist/cjs/vite.js'); if (standardDecorators().enforce !== 'pre') throw new Error('CJS cereale/vite broken');"
node --input-type=module -e "import * as m from './dist/cereale.min.js'; if (typeof m.toInstanceSync !== 'function') throw new Error('flat bundle broken');"
run: node scripts/check-entry-points.mjs
- name: Run Demo
run: npm run demo
- name: Published types stand alone