Skip to content

Commit fcebb15

Browse files
committed
Revert "Remove local ci for now"
This reverts commit 7d6ed4a.
1 parent 91d65e2 commit fcebb15

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

bin/ci

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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"

config/ci.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

0 commit comments

Comments
 (0)