Skip to content

Commit

Permalink
Fix duplicate github annotations for rspec failures (mastodon#27450)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Oct 18, 2023
1 parent 5ef26d8 commit e9dc30c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
CAS_ENABLED: true
BUNDLE_WITH: 'pam_authentication test'
CI_JOBS: ${{ matrix.ci_job }}/4
GITHUB_RSPEC: ${{ matrix.ruby-version == '.ruby-version' }}

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

# Use the GitHub Annotations formatter for CI
if ENV['GITHUB_ACTIONS'] == 'true'
if ENV['GITHUB_ACTIONS'] == 'true' && ENV['GITHUB_RSPEC'] == 'true'
require 'rspec/github'
config.add_formatter RSpec::Github::Formatter
end
Expand Down

0 comments on commit e9dc30c

Please sign in to comment.