diff --git a/ApiCore-Backend/src/voice/eval/voice-eval.spec.ts b/ApiCore-Backend/src/voice/eval/voice-eval.spec.ts index 5079a89..078acf9 100644 --- a/ApiCore-Backend/src/voice/eval/voice-eval.spec.ts +++ b/ApiCore-Backend/src/voice/eval/voice-eval.spec.ts @@ -1,4 +1,4 @@ -import { readFileSync, readdirSync } from 'node:fs'; +import { existsSync, readFileSync, readdirSync } from 'node:fs'; import { join } from 'node:path'; import { formatReport } from './eval-report'; import { loadGoldCases, parseGoldCase, type GoldCase } from './gold-case'; @@ -317,6 +317,10 @@ describe('eval:voice stays out of CI', () => { '.gitea', 'workflows', ); + // The backend image builds without the repo root: nothing to check there. + if (!existsSync(workflows)) { + return; + } const files = readdirSync(workflows).filter((name) => /\.ya?ml$/.test(name), );