test: eval:voice-Workflow-Prüfung nur im Monorepo (Backend-Image ohne .gitea)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Nick.RosenloecherandClaude Opus 5.5 committed 2026-10-16 17:32:21 +02:00
1 parent d8238855fc
commit e71848d996
1 file changed
+5 -1
@@ -1,4 +1,4 @@
import { readFileSync, readdirSync } from 'node:fs'; import { existsSync, readFileSync, readdirSync } from 'node:fs';
import { join } from 'node:path'; import { join } from 'node:path';
import { formatReport } from './eval-report'; import { formatReport } from './eval-report';
import { loadGoldCases, parseGoldCase, type GoldCase } from './gold-case'; import { loadGoldCases, parseGoldCase, type GoldCase } from './gold-case';
@@ -317,6 +317,10 @@ describe('eval:voice stays out of CI', () => {
'.gitea', '.gitea',
'workflows', 'workflows',
); );
// The backend image builds without the repo root: nothing to check there.
if (!existsSync(workflows)) {
return;
}
const files = readdirSync(workflows).filter((name) => const files = readdirSync(workflows).filter((name) =>
/\.ya?ml$/.test(name), /\.ya?ml$/.test(name),
); );