Skip to content

Commit d97bfb5

Browse files
committed
chore: Use GH formatter for rspec tests
1 parent 11907ed commit d97bfb5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ end
1818

1919
group :test do
2020
gem 'rspec-rails'
21+
gem 'rspec-github', require: 'false'
2122
gem 'simplecov'
2223
gem 'simplecov-cobertura'
2324
end

spec/spec_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@
3030

3131
RSpec.configure do |config|
3232
config.order = 'random'
33+
34+
# Use the GitHub Annotations formatter for CI
35+
if ENV['GITHUB_ACTIONS'] == 'true'
36+
require 'rspec/github'
37+
config.add_formatter RSpec::Github::Formatter
38+
end
3339
end

0 commit comments

Comments
 (0)