Skip to content

Commit

Permalink
Test on modern versions of rails
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Dec 9, 2024
1 parent 9db259a commit a5dc311
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 25 deletions.
44 changes: 20 additions & 24 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.1', '3.2']
rails: ['7.0.8']
ruby: ["3.1", "3.2"]
rails: ["7.1.5"]
include:
- ruby: '2.7'
rails: '5.2.3'
- ruby: '2.7'
rails: '6.0.6.1'
- ruby: '3.0'
rails: '6.0.6.1'
- ruby: '3.1'
rails: '6.1.7.6'
- ruby: "3.3"
rails: "7.2.2"
- ruby: "3.3"
rails: "8.0.0"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: ${{ matrix.rails }}
- name: Run tests
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
ENGINE_CART_RAILS_OPTIONS: '--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test'
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
env:
RAILS_VERSION: ${{ matrix.rails }}
- name: Run tests
run: bundle exec rake
env:
RAILS_VERSION: ${{ matrix.rails }}
ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-action-cable --skip-coffee --skip-test"
2 changes: 1 addition & 1 deletion riiif.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_dependency 'railties', '>= 4.2', '<8'
spec.add_dependency 'railties', '>= 4.2', '< 9'
spec.add_dependency 'deprecation', '>= 1.0.0'
spec.add_dependency 'iiif-image-api', '>= 0.1.0'

Expand Down

0 comments on commit a5dc311

Please sign in to comment.