]> git.openstreetmap.org Git - rails.git/blob - config/ci.rb
Reconfigure i18n-js to avoid top-level i18n directory
[rails.git] / config / ci.rb
1 # frozen_string_literal: true
2
3 # Run using bin/ci
4
5 CI.run do
6   step "Setup", "bin/setup --skip-server"
7
8   step "Style: Ruby", "bin/rubocop"
9
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"
12
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"
16
17   # Optional: set a green GitHub commit status to unblock PR merge.
18   # Requires the `gh` CLI and `gh extension install basecamp/gh-signoff`.
19   # if success?
20   #   step "Signoff: All systems go. Ready for merge and deploy.", "gh signoff"
21   # else
22   #   failure "Signoff: CI failed. Do not merge or deploy.", "Fix the issues and try again."
23   # end
24 end