-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github actions & fix broken tests
- Loading branch information
Showing
10 changed files
with
62 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: ['2.7', '3.0', '3.1', '3.2', '3.3', 'jruby'] | ||
gemfile: | ||
- rails6-mongoid7 | ||
- rails7-mongoid8 | ||
# - rails7-mongoid9 | ||
include: | ||
- ruby_version: '2.4' | ||
gemfile: rails5-mongoid6 | ||
- ruby_version: '2.5' | ||
gemfile: rails5-mongoid7 | ||
- ruby_version: '3.3' | ||
gemfile: rails-edge | ||
exclude: | ||
- ruby_version: 'jruby' | ||
gemfile: rails7-mongoid8 # JRuby 9.4.8 with Mongoid 8 has trouble finding the Logger::INFO constant | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler-cache: true | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
|
||
- run: bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
source "https://rubygems.org" | ||
gemspec path: ".." | ||
gem 'rails', '~> 4.2.0' | ||
gem 'rails', '~> 5.0' | ||
gem 'mongoid', '~> 6.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
source "https://rubygems.org" | ||
gemspec path: ".." | ||
gem 'rails', '~> 5.0.0' | ||
gem 'rails', '~> 5.2' | ||
gem 'mongoid', '~> 7.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
source "https://rubygems.org" | ||
gemspec path: ".." | ||
gem 'rails', '~> 5.2.0' | ||
gem 'rails', '~> 6.1' | ||
gem 'mongoid', '~> 7.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
source "https://rubygems.org" | ||
gemspec path: ".." | ||
gem 'rails', '~> 6.0.0' | ||
gem 'rails', '~> 7.1' | ||
gem 'mongoid', '~> 8.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" | ||
gemspec path: ".." | ||
gem 'rails', '~> 7.1' | ||
gem 'mongoid', '~> 9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ require 'mongoid_rails_migrations/version' | |
Gem::Specification.new do |spec| | ||
spec.name = 'mongoid_rails_migrations' | ||
spec.version = MongoidRailsMigrations::VERSION | ||
spec.authors = ['Alan Da Costa'] | ||
spec.email = ['[email protected]'] | ||
spec.authors = ['Alan Da Costa', 'Adrien Rey-Jarthon'] | ||
spec.email = ['[email protected]', '[email protected]'] | ||
|
||
spec.summary = 'Data migrations for Mongoid.' | ||
spec.description = 'Data migrations for Mongoid in Active Record style, minus column input.' | ||
|
@@ -19,7 +19,8 @@ Gem::Specification.new do |spec| | |
rails_version = '>= 4.2.0' | ||
|
||
spec.add_runtime_dependency('bundler', '>= 1.0.0') | ||
spec.add_runtime_dependency('mongoid', '>= 5.0.0') | ||
# 9.0.0 broke client override isolation: https://jira.mongodb.org/browse/MONGOID-5815 | ||
spec.add_runtime_dependency('mongoid', '>= 5.0.0', '< 9.0.0') | ||
spec.add_runtime_dependency('rails', rails_version) | ||
spec.add_runtime_dependency('railties', rails_version) | ||
spec.add_runtime_dependency('activesupport', rails_version) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.