name: "Tests"

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - "*"

env:
  CI: "true"

jobs:
  main:
    name: Tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
        activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1]
        exclude:
          - ruby: 2.2
            activemodel: 6.0
          - ruby: 2.3
            activemodel: 6.0
          - ruby: 2.4
            activemodel: 6.0
          - ruby: 2.2
            activemodel: 6.1
          - ruby: 2.3
            activemodel: 6.1
          - ruby: 2.4
            activemodel: 6.1
      fail-fast: true
    env:
      ACTIVE_MODEL_VERSION: ${{ matrix.activemodel }}
    steps:
      - uses: actions/checkout@v2.0.0
        with:
          fetch-depth: 1
      - uses: ruby/setup-ruby@master
        with:
          ruby-version: ${{ matrix.ruby }}
      - run: bundle install --jobs 4 --retry 3
        name: Install Ruby deps
      - run: bundle exec rake

name: "Tests"

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - "*"

env:
  CI: "true"

jobs:
  main:
    name: Tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
        activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1]
        include:
          - ruby: 3.0
            activemodel: 6.0
          - ruby: 3.0
            activemodel: 6.1
        exclude:
          - ruby: 2.2
            activemodel: 6.0
          - ruby: 2.3
            activemodel: 6.0
          - ruby: 2.4
            activemodel: 6.0
          - ruby: 2.2
            activemodel: 6.1
          - ruby: 2.3
            activemodel: 6.1
          - ruby: 2.4
            activemodel: 6.1
      fail-fast: true
    env:
      ACTIVE_MODEL_VERSION: ${{ matrix.activemodel }}
    steps:
      - uses: actions/checkout@v2.0.0
        with:
          fetch-depth: 1
      - uses: ruby/setup-ruby@master
        with:
          ruby-version: ${{ matrix.ruby }}
      - run: bundle install --jobs 4 --retry 3
        name: Install Ruby deps
      - run: bundle exec rake

Include Ruby 3.0 in CI
Include Ruby 3.0 in CI
