From cac84b4388bffef69c8a4956caabb5ce52be1204 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Sat, 18 Jul 2026 20:02:30 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=88=A0=E9=99=A4=20checks.yml(=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=20push=20=E5=8D=A0=20runner)+=20deploy-client=20?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=20tag=20=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删 checks.yml:design-source 检查每次 push 都跑、占唯一 mac-runner、与发版抢资源; golden/ds 闸改本地跑(flutter test test/golden/)。需要时可从 git 恢复。 - deploy-client 恢复 push tags 自动触发(之前误删),保留 Windows 单节点改动。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu --- .gitea/workflows/checks.yml | 45 ------------------------------ .gitea/workflows/deploy-client.yml | 6 ++-- 2 files changed, 3 insertions(+), 48 deletions(-) delete mode 100644 .gitea/workflows/checks.yml diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml deleted file mode 100644 index 0cc3e83..0000000 --- a/.gitea/workflows/checks.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Design Source Checks - -# 设计真相源检查(治理规则见 CLAUDE.md「设计真相源分层」): -# PR 与合并 main 时自动跑:四道静态闸(node + dart format)+ flutter test -# (单测 + golden ×3 主题回归自比,2026-07-07 纳入——此前 DoD 写了但无闸)。 -# fidelity 重型像素闸维持「定期体检」定位,本地手动跑。 -on: - pull_request: - push: - branches: [main] - -concurrency: - group: checks-${{ gitea.ref }} - cancel-in-progress: true - -jobs: - design-source: - runs-on: mac - - steps: - - uses: actions/checkout@v4 - - - name: Provision (idempotent — auto-runs if host not initialized) - run: sh scripts/ci/provision-mac.sh - - - name: 原型设计系统闸(check-ds 12 道) - run: node design/prototype/tools/check-ds.mjs - - - name: L1 真相源同源闸(tokens 快照 / icons / 官网 token 值 / web hex) - run: node tools/check-l1-sync.mjs - - - name: Flutter 颜色单源闸(check_ds_code) - run: node client/tool/check_ds_code.mjs - - - name: token codegen 新鲜度(regen → format → 与入库产物零 diff) - run: | - cd client - node tool/gen_tokens.mjs - dart format lib/core/theme/app_tokens.g.dart lib/core/theme/app_dims.g.dart lib/core/theme/app_chrome.g.dart - git diff --exit-code -- lib/core/theme/app_tokens.g.dart lib/core/theme/app_dims.g.dart lib/core/theme/app_chrome.g.dart - - - name: Flutter 测试(单测 + golden ×3 主题回归自比) - run: | - cd client - flutter test diff --git a/.gitea/workflows/deploy-client.yml b/.gitea/workflows/deploy-client.yml index 0f6dff4..699734c 100644 --- a/.gitea/workflows/deploy-client.yml +++ b/.gitea/workflows/deploy-client.yml @@ -1,9 +1,9 @@ name: Deploy Client -# 发版改为**手动触发**:打 tag 不再自动发版(tag 只作版本标记)。 -# 发版时在 gitea「Run workflow」选该版本的 tag 作为 ref 运行 + 选 windows_source。 -# (之前 push tags 自动触发在弱网/tag 事件飘忽下反复出重复 run、卡死,故改手动可控。) on: + push: + tags: + - 'client-v[0-9]*.[0-9]*.[0-9]*' workflow_dispatch: inputs: windows_source: