Skip to content

Commit 328cd86

Browse files
committed
Debug CI issues.
1 parent 1968a2a commit 328cd86

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/rails_application.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,28 @@ jobs:
193193
done
194194
echo "PostgreSQL is ready."
195195
196-
RAILS_ENV=test bundle exec rails db:prepare
196+
echo "Testing simple app loading first..."
197+
RAILS_ENV=test bundle exec rails runner "puts 'App loads OK'" 2>&1 || {
198+
echo "App loading fails"
199+
exit 1
200+
}
201+
202+
echo "Running db:create..."
203+
RAILS_ENV=test bundle exec rails db:create 2>&1 || echo "db:create failed or DB already exists"
204+
205+
echo "Running db:schema:load..."
206+
RAILS_ENV=test bundle exec rails db:schema:load 2>&1 || {
207+
echo "db:schema:load failed"
208+
exit 1
209+
}
210+
211+
echo "Running db:seed..."
212+
RAILS_ENV=test bundle exec rails db:seed 2>&1 || {
213+
echo "db:seed failed"
214+
exit 1
215+
}
216+
217+
echo "All db operations completed successfully"
197218
198219
SUBJECT_LIST_OUTPUT=$(RAILS_ENV=test DEBUG_TRANSFORMATIONS=true bundle exec mutant environment subject list)
199220
mapfile -t subjects_array < <( \

infra/lib/infra/event_store.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ module Infra
22
class EventStore < SimpleDelegator
33
def self.main
44
if ENV['DISABLE_EVENT_TRANSFORMATIONS'] == 'true'
5+
puts "[DEBUG] Event transformations DISABLED"
56
mapper = default_mapper
67
else
8+
puts "[DEBUG] Event transformations ENABLED"
79
require_relative "../../../rails_application/lib/transformations/refund_to_return_event_mapper" rescue nil
810

911
if defined?(Transformations::RefundToReturnEventMapper)

0 commit comments

Comments
 (0)