1 # frozen_string_literal: true
6 step "Setup", "bin/setup --skip-server"
8 step "Style: Ruby", "bin/rubocop"
10 step "Security: Importmap vulnerability audit", "bin/importmap audit"
11 step "Security: Brakeman code analysis", "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error"
13 step "Tests: Rails", "bin/rails test"
14 step "Tests: System", "bin/rails test:system"
15 step "Tests: Seeds", "env RAILS_ENV=test bin/rails db:seed:replant"
17 # Optional: set a green GitHub commit status to unblock PR merge.
18 # Requires the `gh` CLI and `gh extension install basecamp/gh-signoff`.
20 # step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff"
22 # failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again."