Skip to content

Add support for mongoid 9 #20

Add support for mongoid 9

Add support for mongoid 9 #20

Workflow file for this run

name: CI RSpec Test
on: [push, pull_request]
jobs:
build:
name: >-
Mongoid Test with: - Ruby ${{ matrix.entry.ruby }} - MongoDB ${{ matrix.entry.mongodb }} - Gemfile ${{ matrix.entry.gemfile }})
env:
CI: true
TESTOPTS: "-v"
BUNDLE_GEMFILE: gemfiles/${{ matrix.entry.gemfile }}.gemfile
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
entry:
- { ruby: "2.1", gemfile: 'mongoid_3', bundler: "1", mongodb: "3.6" }
- { ruby: "2.1", gemfile: 'mongoid_3', bundler: "1", mongodb: "3.6" }
- { ruby: "2.1", gemfile: 'mongoid_4', bundler: "1", mongodb: "3.6" }
- { ruby: "2.2", gemfile: 'mongoid_4', bundler: "2", mongodb: "3.6" }
- { ruby: "2.2", gemfile: 'mongoid_5', bundler: "2", mongodb: "3.6" }
- { ruby: "2.3", gemfile: 'mongoid_5', bundler: "2", mongodb: "3.6" }
- { ruby: "2.4", gemfile: 'mongoid_6', bundler: "2", mongodb: "3.6" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "3.6" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "3.6" }
- { ruby: "2.7", gemfile: 'mongoid_7', bundler: "2", mongodb: "3.6" }
- { ruby: "3.0", gemfile: 'mongoid_8', bundler: "2", mongodb: "3.6" }
- { ruby: "3.1", gemfile: 'mongoid_8', bundler: "2", mongodb: "3.6" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "4.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.0" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "4.2" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.2" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.2" }
- { ruby: "2.7", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.2" }
- { ruby: "3.0", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.2" }
- { ruby: "3.1", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.2" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "4.4" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.4" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.4" }
- { ruby: "2.7", gemfile: 'mongoid_7', bundler: "2", mongodb: "4.4" }
- { ruby: "3.0", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.4" }
- { ruby: "3.1", gemfile: 'mongoid_8', bundler: "2", mongodb: "4.4" }
- { ruby: "2.5", gemfile: 'mongoid_6', bundler: "2", mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', bundler: "2", mongodb: "5.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', bundler: "2", mongodb: "5.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', bundler: "2", mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', bundler: "2", mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', bundler: "2", mongodb: "5.0" }
steps:
- name: Set up MongoDB ${{ matrix.entry.mongodb }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.entry.mongodb }}
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
bundler: '${{ matrix.entry.bundler || 1 }}'
bundler-cache: true
- name: Run tests
run: bundle exec rake