From 9b9a088632b28e02d285a3eb9de7d58838956d4b Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Mon, 10 Aug 2026 22:20:22 +0300 Subject: [PATCH 1/3] Fix typo in recalc_abilities script --- scripts/recalc_abilities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/recalc_abilities.rb b/scripts/recalc_abilities.rb index 96a242f45..36c6222bc 100644 --- a/scripts/recalc_abilities.rb +++ b/scripts/recalc_abilities.rb @@ -12,4 +12,4 @@ end end.parse! -RecalcAbilitiesJob.perform_now(options) +RecalcAbilitiesJob.perform_now(**options) From 685e83fdf7f35da571fa9a948fa2f7c0cce18acf Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Mon, 10 Aug 2026 22:35:33 +0300 Subject: [PATCH 2/3] Add test to catch recalc_abilities script breaking --- test/scripts/recalc_abilities_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/scripts/recalc_abilities_test.rb diff --git a/test/scripts/recalc_abilities_test.rb b/test/scripts/recalc_abilities_test.rb new file mode 100644 index 000000000..e6f19d2f4 --- /dev/null +++ b/test/scripts/recalc_abilities_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class RecalcAbilitiesTest < ActiveSupport::TestCase + test 'should correctly run the script' do + assert_nothing_raised do + system('bundle exec rails runner scripts/recalc_abilities.rb', exception: true) + end + end +end From 3d6fd017998aa2ca83fe3e444fc3323a6d1e8bbb Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Mon, 10 Aug 2026 23:04:31 +0300 Subject: [PATCH 3/3] Add scripts as a checked component to codecov --- .github/.codecov.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/.codecov.yml b/.github/.codecov.yml index 6e4262d6b..ec2f846dd 100644 --- a/.github/.codecov.yml +++ b/.github/.codecov.yml @@ -39,3 +39,7 @@ component_management: name: tasks paths: - app/tasks/** + - component_id: module_scripts + name: scripts + paths: + - app/scripts/**