Skip to content

Commit

Permalink
Merge pull request #10967 from MSP-Greg/00-actions-no-color
Browse files Browse the repository at this point in the history
Actions - use --no-color so 'web ui' shows logs for RSpec steps
  • Loading branch information
koic committed Aug 26, 2022
2 parents b4d8a1e + 6ee09e4 commit eb3acca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/spec_runner.rake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module RuboCop

def initialize(rspec_args = %w[spec --force-color], parallel: true,
external_encoding: 'UTF-8', internal_encoding: nil)
@rspec_args = rspec_args
@rspec_args = ENV['GITHUB_ACTIONS'] == 'true' ? %w[spec --no-color] : rspec_args
@previous_external_encoding = Encoding.default_external
@previous_internal_encoding = Encoding.default_internal

Expand Down

0 comments on commit eb3acca

Please sign in to comment.