Add Chinese (Simplified) translations for all documentation, organized under a dedicated zh/ directory that mirrors the English folder structure. Co-authored-by: tanqingkuang <tanqingkuang@users.noreply.github.com> Translations originally contributed by @tanqingkuang in #45. Restructured from *-CN.md suffix pattern into zh/ directory to prevent the EPUB builder (scripts/build_epub.py collect_folder_files) from picking up Chinese files via glob("*.md") inside module folders.
999 B
999 B
name, description, tags
| name | description | tags |
|---|---|---|
| 设置 CI/CD 流水线 | 实现 pre-commit hooks 和 GitHub Actions 质量保障 | ci-cd, devops, automation |
设置 CI/CD 流水线
根据项目类型实现完整的 DevOps 质量门禁:
- 分析项目:检测语言、框架、构建系统和现有工具链
- 配置 pre-commit hooks,使用与语言匹配的工具:
- 格式化:Prettier/Black/gofmt/rustfmt 等
- 代码检查:ESLint/Ruff/golangci-lint/Clippy 等
- 安全:Bandit/gosec/cargo-audit/npm audit 等
- 类型检查:TypeScript/mypy/flow(如适用)
- 测试:运行相关测试套件
- 创建 GitHub Actions 工作流(
.github/workflows/):- 在 push/PR 时镜像 pre-commit 检查
- 多版本/多平台矩阵(如适用)
- 构建和测试验证
- 部署步骤(如需要)
- 验证流水线:本地测试、创建测试 PR,确认所有检查都通过
使用免费/开源工具。尊重已有配置。保持执行快速。