name: CI
on: [push, pull_request]
jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        gemfile: [ activemodel5, activemodel6, activemodel7 ]
        ruby: [2.5, 2.6, 2.7, "3.0", 3.1]
    runs-on: ubuntu-latest
    env:
      BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - run: bundle exec rake

name: CI
on: [push, pull_request]
jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        gemfile: [ activemodel5, activemodel6, activemodel7 ]
        ruby: [2.5, 2.6, 2.7, "3.0", 3.1]
        exclude:
          - gemfile: activemodel7
            ruby: 2.5
          - gemfile: activemodel7
            ruby: 2.6
          - gemfile: activemodel5
            ruby: "3.0"
          - gemfile: activemodel5
            ruby: 3.1
    runs-on: ubuntu-latest
    env:
      BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - run: bundle exec rake

Exclude incompatible ruby and rails versions
Exclude incompatible ruby and rails versions
