Skip to content

Commit

Permalink
Test with Blacklight 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Feb 5, 2024
1 parent ada6553 commit 0a7dc3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
matrix:
ruby: [2.7, '3.0']
rails_version: ['6.1.7.1', '7.0.4.1']
blacklight_version: ['~> 7.0']
additional_engine_cart_rails_options: ['']
include:
- ruby: '3.3'
Expand All @@ -31,8 +32,13 @@ jobs:
rails_version: '7.0.4.1'
- ruby: '3.0'
rails_version: '7.0.4.1'
- ruby: '3.2'
rails_version: '7.1.3'
name: 'Blacklight 8'
blacklight_version: '8.1.0'

env:
BLACKLIGHT_VERSION: "~> 7.0" # only test on BL 7 for now
BLACKLIGHT_VERSION: ${{ matrix.blacklight_version }}
RAILS_VERSION: ${{ matrix.rails_version }}
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-coffee --skip-test ${{ matrix.engine_cart_rails_options }}"
steps:
Expand Down
7 changes: 6 additions & 1 deletion spec/test_app_templates/Gemfile.extra
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
gem 'rails-controller-testing'
gem 'blacklight', ENV['BLACKLIGHT_VERSION'] if ENV['BLACKLIGHT_VERSION']

if ENV['BLACKLIGHT_VERSION'] == 'github'
gem 'blacklight', github: 'projectblacklight/blacklight'
elsif ENV['BLACKLIGHT_VERSION'] && !ENV['BLACKLIGHT_VERSION'].empty?
gem 'blacklight', ENV['BLACKLIGHT_VERSION']
end

0 comments on commit 0a7dc3b

Please sign in to comment.