Fix duplicate github annotations for rspec failures (#27450)
parent
5ef26d8fd5
commit
e9dc30cdba
|
@ -113,6 +113,7 @@ jobs:
|
||||||
CAS_ENABLED: true
|
CAS_ENABLED: true
|
||||||
BUNDLE_WITH: 'pam_authentication test'
|
BUNDLE_WITH: 'pam_authentication test'
|
||||||
CI_JOBS: ${{ matrix.ci_job }}/4
|
CI_JOBS: ${{ matrix.ci_job }}/4
|
||||||
|
GITHUB_RSPEC: ${{ matrix.ruby-version == '.ruby-version' }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -38,7 +38,7 @@ RSpec.configure do |config|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use the GitHub Annotations formatter for CI
|
# Use the GitHub Annotations formatter for CI
|
||||||
if ENV['GITHUB_ACTIONS'] == 'true'
|
if ENV['GITHUB_ACTIONS'] == 'true' && ENV['GITHUB_RSPEC'] == 'true'
|
||||||
require 'rspec/github'
|
require 'rspec/github'
|
||||||
config.add_formatter RSpec::Github::Formatter
|
config.add_formatter RSpec::Github::Formatter
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue