Skip to content

Commit

Permalink
Run tests against mongoid 9
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed Aug 14, 2024
1 parent 44fedc4 commit 28e6f68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ jobs:
mongoid: [4, 5, 6, 7, 8, HEAD]
ruby: [3.2]
include:
- mongoid: 8
ruby: 2.7
- mongoid: 8
ruby: 3.0
- mongoid: 8
ruby: 3.1
- mongoid: 8
ruby: 3.2
- mongoid: 9
ruby: 3.4

runs-on: ubuntu-latest
steps:
- id: mongodb
name: Start MongoDB
uses: mongodb-labs/drivers-evergreen-tools@master
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gemspec

case version = ENV['MONGOID_VERSION'] || '~> 7.0'
when 'HEAD' then gem 'mongoid', github: 'mongodb/mongoid'
when /9/ then gem 'mongoid', '~> 9.0'
when /8/ then gem 'mongoid', '~> 8.0'
when /7/ then gem 'mongoid', '~> 7.0'
when /6/ then gem 'mongoid', '~> 6.0'
Expand Down
2 changes: 1 addition & 1 deletion mongoid-tree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|

s.files = Dir.glob('{lib,spec}/**/*') + %w(LICENSE README.md Rakefile Gemfile)

s.add_runtime_dependency('mongoid', ['>= 4.0', '< 9'])
s.add_runtime_dependency('mongoid', ['>= 4.0', '< 10'])
s.add_development_dependency('mongoid-compatibility')
s.add_development_dependency('rake', ['>= 0.9.2'])
s.add_development_dependency('rspec', ['~> 3.0'])
Expand Down

0 comments on commit 28e6f68

Please sign in to comment.