name: CI

on: [push, pull_request]

jobs:
  test:
    name: >-
      Test (${{ matrix.gemfile }} ${{ matrix.ruby }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        gemfile:
        - gemfiles/rails_5.2.gemfile
        - gemfiles/rails_6.0.gemfile
        - Gemfile
        ruby:
         - 2.5
         - 2.6
         - 2.7
         - jruby
        include:
        - ruby: 2.7
          gemfile: gemfiles/rails_head.gemfile
    env:
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - run: bundle exec rake test
  rubocop:
    name: Rubocop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7
          bundler-cache: true
      - run: bundle exec rubocop --format github

name: CI

on: [push, pull_request]

jobs:
  test:
    name: >-
      Test (${{ matrix.gemfile }} ${{ matrix.ruby }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        gemfile:
        - gemfiles/rails_5.2.gemfile
        - gemfiles/rails_6.0.gemfile
        - Gemfile
        ruby:
         - 2.5
         - 2.6
         - 2.7
         - 3.0
         - jruby
        include:
        - ruby: 3.0
          gemfile: gemfiles/rails_head.gemfile
    env:
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - run: bundle exec rake test
  rubocop:
    name: Rubocop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0
          bundler-cache: true
      - run: bundle exec rubocop --format github

Add Ruby 3.0 to ruby version matrix
Add Ruby 3.0 to ruby version matrix
