Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
env:
TARGET_DB: ${{ matrix.database }}
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
RAILS_ENV: test
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -68,3 +69,12 @@ jobs:
bin/rails db:setup
- name: Run tests
run: bin/rails test
- name: Upload logs on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.database }}-${{ matrix.gemfile }}-ruby${{ matrix.ruby-version }}-attempt${{ github.run_attempt }}
path: |
test/dummy/log/test.log
if-no-files-found: ignore
retention-days: 7
5 changes: 5 additions & 0 deletions test/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@
config.solid_queue.logger = ActiveSupport::Logger.new(nil)

config.solid_queue.shutdown_timeout = 2.seconds

config.log_formatter = proc do |severity, timestamp, progname, msg|
ts = timestamp.getlocal.strftime("%H:%M:%S.%3N")
"#{ts} #{msg}\n"
end
end