diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-10-18 10:18:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 10:18:34 +0200 |
commit | e9dc30cdbaf97ffd802e6503fbacdadf5d95dadb (patch) | |
tree | 82206b30777cfab0c5ad80985195481fd6ce3936 | |
parent | 5ef26d8fd50081c642b858a82bf0c5431b1c7e83 (diff) |
Fix duplicate github annotations for rspec failures (#27450)
-rw-r--r-- | .github/workflows/test-ruby.yml | 1 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/test-ruby.yml b/.github/workflows/test-ruby.yml index 0d0215bc06b..f8280a22f4f 100644 --- a/.github/workflows/test-ruby.yml +++ b/.github/workflows/test-ruby.yml @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4d3c234a0e8..6ff0a8f8420 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -38,7 +38,7 @@ RSpec.configure do |config| 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 |