-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09e45cc
commit 1c1c415
Showing
33 changed files
with
251 additions
and
143 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
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,76 +5,65 @@ on: [push, pull_request] | |
jobs: | ||
build: | ||
name: >- | ||
Mongoid ${{ matrix.entry.mongoid }} - Ruby ${{ matrix.entry.ruby }} - MongoDB ${{ matrix.entry.mongodb }} | ||
Mongoid Test with: - Ruby ${{ matrix.entry.ruby }} - MongoDB ${{ matrix.entry.mongodb }} - Gemfile ${{ matrix.entry.gemfile }}) | ||
env: | ||
CI: true | ||
TESTOPTS: -v | ||
TESTOPTS: "-v" | ||
BUNDLE_GEMFILE: gemfiles/${{ matrix.entry.gemfile }}.gemfile | ||
runs-on: ubuntu-latest | ||
continue-on-error: false | ||
strategy: | ||
matrix: | ||
entry: | ||
- { ruby: "2.1", mongoid: "3", bundler: "1", mongodb: "3.6" } | ||
- { ruby: "2.1", mongoid: "4", bundler: "1", mongodb: "3.6" } | ||
- { ruby: "2.2", mongoid: "4", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.2", mongoid: "5", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.3", mongoid: "5", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.4", mongoid: "6.1", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.5", mongoid: "6.2", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.5", mongoid: "6.4", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.6", mongoid: "7.4", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.6", mongoid: "7.5", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.7", mongoid: "7.5", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "3.0", mongoid: "8.0", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "3.1", mongoid: "8.0", bundler: "2", mongodb: "3.6" } | ||
- { ruby: "2.5", mongoid: "6.4", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "2.6", mongoid: "7.4", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "2.6", mongoid: "7.5", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "2.7", mongoid: "7.5", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "3.0", mongoid: "8.0", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "3.1", mongoid: "8.0", bundler: "2", mongodb: "4.0" } | ||
- { ruby: "2.5", mongoid: "6.4", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "2.6", mongoid: "7.4", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "2.6", mongoid: "7.5", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "2.7", mongoid: "7.5", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "3.0", mongoid: "8.0", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "3.1", mongoid: "8.0", bundler: "2", mongodb: "4.2" } | ||
- { ruby: "2.5", mongoid: "6.4", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "2.6", mongoid: "7.4", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "2.6", mongoid: "7.5", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "2.7", mongoid: "7.5", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "3.0", mongoid: "8.0", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "3.1", mongoid: "8.0", bundler: "2", mongodb: "4.4" } | ||
- { ruby: "2.5", mongoid: "6.4", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "2.6", mongoid: "7.4", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "2.6", mongoid: "7.5", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "2.7", mongoid: "7.5", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "3.0", mongoid: "8.0", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "3.1", mongoid: "8.0", bundler: "2", mongodb: "5.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_3', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_4', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_4', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_5', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_5', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "3.6" } | ||
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "3.6" } | ||
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "3.6" } | ||
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "3.6" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.0" } | ||
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.0" } | ||
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.0" } | ||
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.2" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.2" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.2" } | ||
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.2" } | ||
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.2" } | ||
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.2" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.4" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.4" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.4" } | ||
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.4" } | ||
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.4" } | ||
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.4" } | ||
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "5.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "5.0" } | ||
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "5.0" } | ||
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "5.0" } | ||
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "5.0" } | ||
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "5.0" } | ||
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "5.0" } | ||
steps: | ||
- name: repo checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: start mongodb | ||
uses: supercharge/[email protected] | ||
- name: Set up MongoDB ${{ matrix.entry.mongodb }} | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.entry.mongodb }} | ||
mongodb-replica-set: rs0 | ||
|
||
- name: load ruby | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.entry.ruby }} | ||
bundler: ${{ matrix.entry.bundler }} | ||
|
||
- name: bundle install | ||
run: bundle install --jobs 4 --retry 3 | ||
env: | ||
MONGOID_VERSION: ${{ matrix.entry.mongoid }} | ||
|
||
- name: test | ||
timeout-minutes: 10 | ||
run: bundle exec rspec spec | ||
continue-on-error: false | ||
env: | ||
MONGOID_VERSION: ${{ matrix.entry.mongoid }} | ||
bundler: '2' | ||
bundler-cache: true | ||
- name: Run tests | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Gemfile.lock | ||
pkg | ||
gemfiles/*.gemfile.lock |
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.
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,34 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'mongoid-9' do | ||
gem 'mongoid', '~> 9.0.0' | ||
end | ||
|
||
appraise 'mongoid-8' do | ||
gem 'mongoid', '~> 8.0.0' | ||
end | ||
|
||
appraise 'mongoid-7' do | ||
gem 'mongoid', '~> 7.0.0' | ||
end | ||
|
||
appraise 'mongoid-6' do | ||
gem 'mongoid', '~> 6.0.2' | ||
end | ||
|
||
appraise 'mongoid-5' do | ||
gem 'mongoid', '~> 5.0.0' | ||
end | ||
|
||
appraise 'mongoid-4' do | ||
gem 'mongoid', '~> 4.0.0' | ||
end | ||
|
||
appraise 'mongoid-3' do | ||
gem 'mongoid', '~> 3.0.0' | ||
end | ||
|
||
appraise 'mongoid-2' do | ||
gem 'mongoid', '~> 2.0.0' | ||
gem 'bson_ext', platforms: :ruby | ||
end |
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 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
danger.import_dangerfile(gem: 'mongoid-danger') |
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,34 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'http://rubygems.org' | ||
|
||
gemspec | ||
|
||
case version = ENV['MONGOID_VERSION'] || '8.0.2' | ||
when 'HEAD' | ||
gem 'mongoid', github: 'mongodb/mongoid' | ||
when /^8/ | ||
gem 'mongoid', '~> 8.0' | ||
when /^7/ | ||
gem 'mongoid', '~> 7.0' | ||
when /^6/ | ||
gem 'mongoid', '~> 6.0' | ||
when /^5/ | ||
gem 'mongoid', '~> 5.0' | ||
when /^4/ | ||
gem 'mongoid', '~> 4.0' | ||
when /^3/ | ||
gem 'mongoid', '~> 3.1' | ||
when /^2/ | ||
gem 'mongoid', '~> 2.0' | ||
gem 'bson_ext', platforms: :ruby | ||
else | ||
gem 'mongoid', version | ||
end | ||
|
||
group :test do | ||
gem 'rspec' | ||
end | ||
|
||
group :development do | ||
gem 'rake', '< 12' | ||
gem 'rubocop', '0.33.0' | ||
end |
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
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,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'bson_ext', platforms: :ruby | ||
gem 'mongoid', '~> 2.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 3.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 4.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 5.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 6.0.2' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 7.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 8.0.0' | ||
|
||
gemspec path: '../' |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by Appraisal | ||
|
||
source 'http://rubygems.org' | ||
|
||
gem 'mongoid', '~> 9.0.0' | ||
|
||
gemspec path: '../' |
Oops, something went wrong.