name: build
on: [push, pull_request]
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        include:
        - ruby: 3.0
          ar_version: 6.1.0
        - ruby: 2.7
          ar_version: 6.0.0
        - ruby: 2.6
          ar_version: 5.2.0
        - ruby: 2.7
          gemfile: gemfiles/mongoid7.gemfile
          mongodb: true
        - ruby: 2.6
          gemfile: gemfiles/mongoid6.gemfile
          mongodb: true
    runs-on: ubuntu-latest
    env:
      AR_VERSION: ${{ matrix.ar_version || 'none' }}
      BUNDLE_GEMFILE: ${{ matrix.gemfile || 'Gemfile' }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - if: ${{ matrix.mongodb }}
      uses: ankane/setup-mongodb@v1
    - run: bundle exec rake test

name: build
on: [push, pull_request]
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        include:
        - ruby: 3.0
          ar_version: 6.1.0
        - ruby: 3.0
          ar_version: 7.0.0.rc1
        - ruby: 2.7
          ar_version: 6.0.0
        - ruby: 2.6
          ar_version: 5.2.0
        - ruby: 2.7
          gemfile: gemfiles/mongoid7.gemfile
          mongodb: true
        - ruby: 2.6
          gemfile: gemfiles/mongoid6.gemfile
          mongodb: true
    runs-on: ubuntu-latest
    env:
      AR_VERSION: ${{ matrix.ar_version || 'none' }}
      BUNDLE_GEMFILE: ${{ matrix.gemfile || 'Gemfile' }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - if: ${{ matrix.mongodb }}
      uses: ankane/setup-mongodb@v1
    - run: bundle exec rake test

Test with Rails 7 rc1
Test with Rails 7 rc1
