Skip to content

Commit

Permalink
fix rspec-github
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Aug 26, 2024
1 parent 85c6618 commit 0791f8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
RAILS_SILENCE_DEPRECATIONS: true
run: |
mkdir /tmp/test-results
bundle exec rspec --backtrace --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
bundle exec rspec --backtrace --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format RSpec::Github::Formatter
-
name: Publish RSpec report
uses: mikepenz/action-junit-report@v3
Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
require 'equivalent-xml'
require 'equivalent-xml/rspec_matchers'
require 'mail'
require 'rspec-github' if ENV['CI']

Capybara.register_driver :selenium_firefox_headless do |app|
browser_options = ::Selenium::WebDriver::Firefox::Options.new
Expand Down Expand Up @@ -67,6 +66,11 @@
ActiveRecord::Migration.maintain_test_schema!

RSpec.configure do |config|
if ENV['CI']
require 'rspec/github'
config.add_formatter RSpec::Github::Formatter
end

config.expect_with :rspec do |expectations|
# This option will default to `true` in RSpec 4. It makes the `description`
# and `failure_message` of custom matchers include text for helper methods
Expand Down

0 comments on commit 0791f8d

Please sign in to comment.