CI
Run the CI pipeline locally before pushing.
Steps
Run these commands in sequence, stopping on first failure:
-
Brakeman (security scan)
bash1bundle exec brakeman --quiet --no-pager --ensure-latest -
Rubocop (style check)
bash1bundle exec rubocop -
Importmap Audit (JS dependency check)
bash1bin/importmap audit -
Unit Tests
bash1bin/rails test -
System Tests
bash1bin/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