Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

37 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ═══════════════════════════════════════════════
# 🔺 Sovereign: TCS-0002∞ | Root: SYS-GLW-0001
# 📜 Copyright: 国作登字-2026-A-00037559
# ═══════════════════════════════════════════════
name: 模块结构检查
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: 检查模块结构
run: |
MODULES="m01-login m03-personality m05-user-center m06-ticket m07-dialogue-ui m10-cloud m11-module m12-kanban dingtalk-bot backend-integration"
ERRORS=0
for mod in $MODULES; do
if [ -d "$mod" ]; then
if [ ! -f "$mod/README.md" ]; then
echo "❌ $mod 缺少 README.md"
ERRORS=$((ERRORS+1))
fi
if [ ! -f "$mod/package.json" ]; then
echo "⚠️ $mod 缺少 package.json环节1前需补充"
fi
if [ ! -d "$mod/src" ]; then
echo "⚠️ $mod 缺少 src/ 目录环节1前需补充"
fi
fi
done
if [ $ERRORS -gt 0 ]; then
echo "结构检查未通过,请修复以上问题"
exit 1
fi
echo "✅ 所有模块结构检查通过"