From 0388fa09123b70007ae99e12ec41efe2c9d88392 Mon Sep 17 00:00:00 2001 From: Linghong Date: Thu, 17 Sep 2026 00:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=B3=E5=AE=9ACI=E6=B5=8B=E8=AF=95=E5=B9=B6?= =?UTF-8?q?=E5=8F=91=E4=B8=8E=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为Project CI增加同分支并发取消,避免旧运行覆盖新结果 将Vitest默认线程数固定为1,降低异步UI测试竞态 --- .gitea/workflows/project-ci.yml | 4 ++++ vitest.config.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/project-ci.yml b/.gitea/workflows/project-ci.yml index f629f6251..5088f80b6 100644 --- a/.gitea/workflows/project-ci.yml +++ b/.gitea/workflows/project-ci.yml @@ -7,6 +7,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: project-ci-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/vitest.config.ts b/vitest.config.ts index 0af75894a..d577cdbe5 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -68,7 +68,7 @@ export default defineConfig({ environment: 'node', globals: true, minThreads: 1, - maxThreads: 8, + maxThreads: 1, server: { deps: { inline: [