From cebd5d35f6fa53dd0eb3291c33a052d6c3bcb702 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 27 Nov 2025 14:57:42 +0100 Subject: [PATCH] Revert "Remove local ci for now" This reverts commit 7d6ed4a459f78d14767f1523b32553df84e627e5. --- bin/ci | 6 ++++++ config/ci.rb | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 bin/ci create mode 100644 config/ci.rb diff --git a/bin/ci b/bin/ci new file mode 100755 index 000000000..4137ad5bb --- /dev/null +++ b/bin/ci @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby +require_relative "../config/boot" +require "active_support/continuous_integration" + +CI = ActiveSupport::ContinuousIntegration +require_relative "../config/ci.rb" diff --git a/config/ci.rb b/config/ci.rb new file mode 100644 index 000000000..9ba7b979d --- /dev/null +++ b/config/ci.rb @@ -0,0 +1,22 @@ +# 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 "Tests: Open source", "bin/rails test" + 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