配置:CI 测试固定 silent: true,统一静默成功用例输出
Project CI / Backend tests (pull_request) Failing after 35s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m37s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 6m43s
Project CI / Repository checks (pull_request) Failing after 26s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 4m46s
Project CI / Frontend tests (pull_request) Successful in 2m50s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m9s
Project CI / Native shell tests (pull_request) Successful in 5m44s

This commit is contained in:
2026-10-04 13:38:51 +08:00
parent 13a15fed5c
commit 8e304f2b22
4 changed files with 25 additions and 0 deletions
+10
View File
@@ -75,6 +75,12 @@ const jobsWithoutNpmInstall: readonly string[] = [
const rootPackageJson = JSON.parse(
readFileSync(resolve(process.cwd(), 'package.json'), 'utf8'),
) as { scripts?: Record<string, string> };
// 前端与 AGC 的 CI 测试都跑根 vitest 配置(`vitest.frontend-ci.config.ts` 也 merge 它),
// 这里钉住「成功用例静默」,避免有人顺手删掉后 CI 日志重新被 act 警告与 dev 日志刷屏。
const rootVitestConfig = readFileSync(
resolve(process.cwd(), 'vitest.config.ts'),
'utf8',
);
const nativeShellGateScript = readFileSync(
resolve(process.cwd(), 'scripts/check-native-shells.mjs'),
'utf8',
@@ -540,6 +546,10 @@ describe('project CI workflow', () => {
).toHaveLength(2);
});
it('keeps passing CI tests silent so only failures reach the log', () => {
expect(rootVitestConfig).toMatch(/^\s*silent:\s*true,$/mu);
});
it('keeps frontend, operations fixture, and native shell gates in dedicated jobs', () => {
const frontendJob = jobSection('frontend-tests');
expect(frontendJob).toMatch(/^ {8}run: npm run test:ci:frontend$/mu);