Skip to content

Commit 006ce49

Browse files
committed
add rspec github annotations formatter
1 parent b9bff5a commit 006ce49

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ group(:test) do
1717
gem "beaker-hostgenerator"
1818
gem "mocha", '~> 1.4.0'
1919
gem "rack-test", '~> 1.0'
20+
gem 'rspec-github', require: false
2021
end
2122

2223
group(:release, optional: true) do

spec/spec_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,11 @@
9393
# in a group (or even an individual test) by specifying
9494
# `:reset_puppet_settings' metadata on the group/test
9595
config.include_context 'reset puppet settings', :reset_puppet_settings
96+
97+
# Use the GitHub Annotations formatter for CI
98+
if ENV['GITHUB_ACTIONS'] == 'true'
99+
require 'rspec/github'
100+
config.add_formatter 'progress'
101+
config.add_formatter RSpec::Github::Formatter
102+
end
96103
end

0 commit comments

Comments
 (0)