mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Add RSpec GitHub annotations gem (#24040)
This commit is contained in:
@@ -36,6 +36,12 @@ RSpec.configure do |config|
|
||||
config.after :suite do
|
||||
FileUtils.rm_rf(Dir[Rails.root.join('spec', 'test_files')])
|
||||
end
|
||||
|
||||
# Use the GitHub Annotations formatter for CI
|
||||
if ENV['GITHUB_ACTIONS'] == 'true'
|
||||
require 'rspec/github'
|
||||
config.add_formatter RSpec::Github::Formatter
|
||||
end
|
||||
end
|
||||
|
||||
def body_as_json
|
||||
|
||||
Reference in New Issue
Block a user