diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 629bc429c..1defb5aac 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -53,3 +53,10 @@ jobs: - name: Run Tests run: $DOCKER_RUN tests + + - name: Upload Test Results + uses: actions/upload-artifact@v3 + if: always() + with: + name: test-results + path: log/test.log diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3eedb2b30..dd47052c9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -52,13 +52,6 @@ class ApplicationController < ActionController::Base # If InvalidAuthenticityToken was raised, CurrentUser isn't set so we have to do it here manually. CurrentUser.user ||= User.anonymous - if Rails.env.test? && ENV["DEBUG"] - puts "---" - STDERR.puts("#{exception.class} exception thrown: #{exception.message}") - exception.backtrace.each {|x| STDERR.puts(x)} - puts "---" - end - case exception when ProcessingError render_expected_error(400, exception) diff --git a/config/environments/test.rb b/config/environments/test.rb index bc90e9edd..2d641637f 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -15,6 +15,7 @@ Rails.application.configure do # this probably isn't necessary. It's a good idea to do in a continuous integration # system, or in some way before deploying your code. config.eager_load = ENV["CI"].present? + config.log_level = :info # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true