首页/ AI 技能 / @skilllib/skill-2014279412454207491
Skill站外收录 @skilllib/skill-2014279412454207491

ci

在本地执行完整的持续集成检查流程,涵盖安全扫描、代码风格审查、依赖项检测及单元与系统测试,按顺序运行并遇到首个失败时立即终止,最终以表格形式汇总各环节结果,确保代码质量达标后提示可安全推送。

0.0 (0) 142 次安装 原作者 编程导航
收录于 2026-01-22
开发运维 AI 技能

Skills.MD

# CI Run the CI pipeline locally before pushing. ## Steps Run these commands in sequence, stopping on first failure: 1. **Brakeman** (security scan) ```bash bundle exec brakeman --quiet --no-pager ``` 2. **Rubocop** (style check) ```bash bundle exec rubocop ``` 3. **Importmap Audit** (JS dependency check) ```bash bin/importmap audit ``` 4. **Unit Tests** ```bash bin/rails test ``` 5. **System Tests** ```bash bin/rails test:system ``` ## Behavior - Run all checks in sequence - Stop and report on first failure - Summarize results at the end as a table: | Step | Status | |------|--------| | Brakeman (security) | ✅ Passed | | Rubocop (style) | ✅ Passed | | Importmap Audit (JS deps) | ✅ Passed | | Unit Tests | ✅ X tests passed | | System Tests | ✅ X tests passed | - If all pass, confirm the code is ready to push

评论 0

还没有评论,来抢沙发。