File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+ require_relative "../config/boot"
3+ require "active_support/continuous_integration"
4+
5+ CI = ActiveSupport ::ContinuousIntegration
6+ require_relative "../config/ci.rb"
Original file line number Diff line number Diff line change 1+ # Run using bin/ci
2+
3+ require_relative "../lib/fizzy"
4+
5+ CI . run do
6+ step "Setup" , "bin/setup --skip-server"
7+
8+ step "Style: Ruby" , "bin/rubocop"
9+
10+ step "Security: Gem audit" , "bin/bundler-audit check --update"
11+ step "Security: Importmap audit" , "bin/importmap audit"
12+ step "Security: Brakeman audit" , "bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error"
13+
14+ step "Tests: Open source" , "bin/rails test"
15+ step "Tests: System" , "bin/rails test:system"
16+
17+ if success?
18+ step "Signoff: All systems go. Ready for merge and deploy." , "gh signoff"
19+ else
20+ failure "Signoff: CI failed. Do not merge or deploy." , "Fix the issues and try again."
21+ end
22+ end
You can’t perform that action at this time.
0 commit comments