From 6f7b4d17bbcb2361e95a3c62279534d12855178c Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Fri, 3 Mar 2023 11:38:20 -0600 Subject: [PATCH] Allow testing with specific versions of blacklight --- .github/workflows/ruby.yml | 2 +- spec/test_app_templates/Gemfile.extra | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 9ea03d328..7cf80063a 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -14,7 +14,7 @@ jobs: rails_version: ['7.0.8'] ruby: ['3.1', '3.2'] bootstrap_version: ['~> 4.0'] - blacklight_version: ['latest'] + blacklight_version: [''] additional_engine_cart_rails_options: [''] additional_name: [''] include: diff --git a/spec/test_app_templates/Gemfile.extra b/spec/test_app_templates/Gemfile.extra index b8dd74fbc..e863c59fb 100644 --- a/spec/test_app_templates/Gemfile.extra +++ b/spec/test_app_templates/Gemfile.extra @@ -5,4 +5,6 @@ if ENV['BLACKLIGHT_VERSION'] == 'edge' gem 'blacklight', github: 'projectblacklight/blacklight' gem 'blacklight-gallery', github: 'projectblacklight/blacklight-gallery' gem 'blacklight-oembed', github: 'projectblacklight/blacklight-oembed' +elsif ENV['BLACKLIGHT_VERSION'] && !ENV['BLACKLIGHT_VERSION'].empty? + gem 'blacklight', ENV['BLACKLIGHT_VERSION'] end