Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ jobs:
- 3.2
- 3.3
- 3.4
- 4.0
mongo-image:
- mongo:4.4
include:
- { "ruby-version": 3.3, "mongo-image": "mongo:4.2" }
- { "ruby-version": 3.3, "mongo-image": "mongo:5.0" }
- { "ruby-version": 3.3, "mongo-image": "mongo:6.0" }
- { "ruby-version": 3.3, "mongo-image": "mongo:7.0" }
- { "ruby-version": 3.3, "mongo-image": "mongo:8.0" }
- { "ruby-version": 4.0, "mongo-image": "mongo:4.2" }
- { "ruby-version": 4.0, "mongo-image": "mongo:5.0" }
- { "ruby-version": 4.0, "mongo-image": "mongo:6.0" }
- { "ruby-version": 4.0, "mongo-image": "mongo:7.0" }
- { "ruby-version": 4.0, "mongo-image": "mongo:8.0" }
services:
mongo:
image: ${{ matrix.mongo-image }}
Expand All @@ -43,7 +44,10 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby-version }}"
bundler-cache: false
- name: Set up bundler
run: bundle config set --local without "guard"
- name: Install dependencies
run: "bundle install --without guard"
run: "bundle install"
- name: Run tests
run: "bundle exec rake"
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if RUBY_VERSION >= '3.4'
gem 'bigdecimal'
end

if RUBY_VERSION >= '4.0'
# the mongo gem depends on the logger gem, which has been extracted as a bundled gem since Ruby 4.0.
gem 'logger'
end
Comment on lines +11 to +14
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue should be addressed by the mongo gem.
I've filed it in the mongo gem's issue tracker: https://jira.mongodb.org/browse/RUBY-3746


group(:test) do
gem 'rspec'
gem 'log_buddy'
Expand Down