Skip to content

Commit

Permalink
Fix rake locale:update_all post zeitwerk
Browse files Browse the repository at this point in the history
* Add qpid to bundle group used by workflow
* Ensure store_model_attributes loads rails environment first
* Install qpid_proton dependencies and set bundle config with qpid_proton
  • Loading branch information
jrafanie committed Oct 26, 2023
1 parent 3b3f192 commit fb07da1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/locale_update_all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,23 @@ jobs:
RAILS_ENV: i18n
SKIP_TEST_RESET: true
SKIP_DATABASE_SETUP: true
BUNDLER_GROUPS: "manageiq_default,ui_dependencies,qpid_proton"
steps:
- uses: actions/checkout@v4
- name: Set up system
run: bin/before_install
- name: Install qpid dependency - libcurl4-openssl-dev
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
- name: Install qpid dependency - libqpid-proton11-dev
run: sudo apt-add-repository --yes 'deb http://us.archive.ubuntu.com/ubuntu lunar universe' && sudo apt-get install -t lunar -y libqpid-proton11-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
timeout-minutes: 30
- name: Set bundle config with qpid_proton
run: bundle config with qpid_proton
- name: Prepare dependencies
run: bin/setup
- name: Setup database
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/locale.rake
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ namespace :locale do
end

desc "Extract model attribute names and virtual column names"
task "store_model_attributes" do
task "store_model_attributes" => :environment do
require 'gettext_i18n_rails/model_attributes_finder'
require_relative 'model_attribute_override.rb'

Expand Down

0 comments on commit fb07da1

Please sign in to comment.