Skip to content

Commit c7c0086

Browse files
committed
Run tests against mongoid 9
1 parent 44fedc4 commit c7c0086

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/test.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@ jobs:
55
strategy:
66
fail-fast: false
77
matrix:
8-
mongoid: [4, 5, 6, 7, 8, HEAD]
8+
mongoid: [4, 5, 6, 7, 8, 9 HEAD]
99
ruby: [3.2]
1010
include:
11-
- mongoid: 8
12-
ruby: 2.7
13-
- mongoid: 8
14-
ruby: 3.0
15-
- mongoid: 8
11+
- mongoid: 9
1612
ruby: 3.1
17-
- mongoid: 8
13+
- mongoid: 9
1814
ruby: 3.2
15+
- mongoid: 9
16+
ruby: 3.3
1917

2018
runs-on: ubuntu-latest
2119
steps:
2220
- id: mongodb
2321
name: Start MongoDB
2422
uses: mongodb-labs/drivers-evergreen-tools@master
25-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2624
- uses: ruby/setup-ruby@v1
2725
with:
2826
ruby-version: ${{ matrix.ruby }}

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ gemspec
44

55
case version = ENV['MONGOID_VERSION'] || '~> 7.0'
66
when 'HEAD' then gem 'mongoid', github: 'mongodb/mongoid'
7+
when /9/ then gem 'mongoid', '~> 9.0'
78
when /8/ then gem 'mongoid', '~> 8.0'
89
when /7/ then gem 'mongoid', '~> 7.0'
910
when /6/ then gem 'mongoid', '~> 6.0'

mongoid-tree.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212

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

15-
s.add_runtime_dependency('mongoid', ['>= 4.0', '< 9'])
15+
s.add_runtime_dependency('mongoid', ['>= 4.0', '< 10'])
1616
s.add_development_dependency('mongoid-compatibility')
1717
s.add_development_dependency('rake', ['>= 0.9.2'])
1818
s.add_development_dependency('rspec', ['~> 3.0'])

0 commit comments

Comments
 (0)