Skip to content

Commit a1e173c

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

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
@@ -17,6 +17,7 @@ group :development do
1717
end
1818

1919
group :test do
20+
gem 'rspec-github', require: false
2021
gem 'rspec-rails'
2122
gem 'simplecov'
2223
gem 'simplecov-cobertura'

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)