Pipeline CI local

Exécute localement le pipeline CI complet avant de pousser le code. Lance séquentiellement Brakeman, Rubocop, Importmap Audit, les tests unitaires et les tests système, et s'arrête dès la première erreur.

Spar Skills Guide Bot
DevOpsIntermédiaire
43028/02/2026
Claude CodeCursorWindsurfCopilot
#ci-cd#ruby-on-rails#code-quality#testing#automation

Recommandé pour


name: ci description: Run the CI pipeline locally (brakeman, rubocop, importmap audit, tests). Use when asked to run CI, check code quality, or verify code before pushing.

CI

Run the CI pipeline locally before pushing.

Steps

Run these commands in sequence, stopping on first failure:

  1. Brakeman (security scan)

    bundle exec brakeman --quiet --no-pager --ensure-latest
    
  2. Rubocop (style check)

    bundle exec rubocop
    
  3. Importmap Audit (JS dependency check)

    bin/importmap audit
    
  4. Unit Tests

    bin/rails test
    
  5. System Tests

    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
Skills similaires