Files
fizzy/config/ci.rb
T
Jorge Manrubia fe20d8f2a5 Format
2025-11-28 15:53:58 +01:00

26 lines
826 B
Ruby

# Run using bin/ci
require_relative "../lib/fizzy"
CI.run do
step "Setup", "bin/setup --skip-server"
step "Style: Ruby", "bin/rubocop"
step "Security: Gem audit", "bin/bundler-audit check --update"
step "Security: Importmap audit", "bin/importmap audit"
step "Security: Brakeman audit", "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error"
step "Security: Gitleaks audit", "bin/gitleaks-audit"
step "Tests: Fizzy", "bin/rails test"
step "Tests: SaaS", "SAAS=1 bin/rails test:saas" if Fizzy.saas?
step "Tests: System", "bin/rails test:system"
if success?
step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff"
else
failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again."
end
end