feat(report): ship daily report v1 experience
This commit is contained in:
@@ -11,15 +11,15 @@ check_file "Dockerfile" "Dockerfile 存在"
|
||||
check_file "docker-compose.yml" "docker-compose.yml 存在"
|
||||
check_file "nginx.conf" "Nginx 配置存在"
|
||||
check_file ".env.example" ".env.example 存在"
|
||||
check_file ".github/workflows/ci.yml" "GitHub Actions CI 配置存在"
|
||||
check_file ".github/workflows/ci.yml" "GitHub Actions CI 工作流存在"
|
||||
check_executable "scripts/backup.sh" "数据库备份脚本可执行"
|
||||
check_file "healthcheck.sh" "健康检查脚本存在"
|
||||
check_file "scripts/restore.sh" "数据库恢复脚本存在"
|
||||
check_shell "CI 包含 Go 测试" "grep -Eq 'go test .*\\./internal/|go test .*\\./\\.\\.\\.' .github/workflows/ci.yml"
|
||||
check_shell "CI 包含前端构建" "grep -q 'npm run build' .github/workflows/ci.yml"
|
||||
check_shell "CI 包含 Docker 构建" "grep -q 'docker build' .github/workflows/ci.yml"
|
||||
check_shell "CI 配置了覆盖率门禁" "grep -Eqi 'coverage|80%' .github/workflows/ci.yml"
|
||||
check_shell "CI 配置了构建产物上传" "grep -Eqi 'upload-artifact|artifacts' .github/workflows/ci.yml"
|
||||
check_shell "Makefile 暴露真实流水线与总门禁入口" "grep -q '^run-real-pipeline:' Makefile && grep -q '^verify-phase1:' Makefile && grep -q '^verify-phase6:' Makefile && grep -q '^verify-pre-phase6:' Makefile"
|
||||
check_shell "部署文档覆盖 Docker、前端启动与 cron 配置" "grep -q 'docker build' DEPLOYMENT.md && grep -q 'npm run dev' DEPLOYMENT.md && grep -q 'crontab -e' DEPLOYMENT.md"
|
||||
check_shell "健康检查脚本覆盖数据库与日报可用性" "grep -q 'psql' healthcheck.sh && grep -q 'reports/daily/daily_report_' healthcheck.sh"
|
||||
check_shell "备份恢复脚本具备 PostgreSQL 入口" "grep -Eq 'pg_dump|psql' scripts/backup.sh && grep -Eq 'psql|pg_restore' scripts/restore.sh"
|
||||
check_shell "CI 工作流覆盖 Go 测试、前端构建与 Docker 构建" "test ! -f .github/workflows/ci.yml || (grep -q 'go test ./...' .github/workflows/ci.yml && grep -q 'npm run build' .github/workflows/ci.yml && grep -Eq 'docker build|docker/build-push-action' .github/workflows/ci.yml)"
|
||||
check_shell "日志轮转配置已落地" "find . -maxdepth 3 -type f | grep -Eqi 'logrotate|logrotate\\.conf'"
|
||||
|
||||
finish_phase
|
||||
|
||||
Reference in New Issue
Block a user