File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
test/dummy/config/environments Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 5252 env :
5353 TARGET_DB : ${{ matrix.database }}
5454 BUNDLE_GEMFILE : ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
55+ RAILS_ENV : test
5556 steps :
5657 - name : Checkout code
5758 uses : actions/checkout@v4
6869 bin/rails db:setup
6970 - name : Run tests
7071 run : bin/rails test
72+ - name : Upload logs on failure
73+ if : ${{ failure() }}
74+ uses : actions/upload-artifact@v4
75+ with :
76+ name : logs
77+ path : |
78+ test/dummy/log/test.log
79+ if-no-files-found : ignore
80+ retention-days : 7
Original file line number Diff line number Diff line change 5959 config . solid_queue . logger = ActiveSupport ::Logger . new ( nil )
6060
6161 config . solid_queue . shutdown_timeout = 2 . seconds
62+
63+ config . log_formatter = proc do |severity , timestamp , progname , msg |
64+ ts = timestamp . getlocal . strftime ( "%H:%M:%S.%3N" )
65+ "#{ ts } #{ msg } \n "
66+ end
6267end
You can’t perform that action at this time.
0 commit comments