name: repo-checks
on:
  push:
    branches: [master]
  pull_request:
jobs:
  main:
    name: rvm-gemfile
    runs-on: [ubuntu-latest]
    env:
      RAILS_ENV: test
    strategy:
      fail-fast: false
      max-parallel: 20
      matrix:
        rvm:
          - 2.5.8
          - 2.6
          - 2.7
        gemfile:
          - gemfiles/rails3.2.gemfile
          - gemfiles/rails4.2.gemfile
          - gemfiles/rails5.0.gemfile
          - gemfiles/rails5.1.gemfile
        task:
          - rake test
        exclude:
          - rvm: 2.7
            gemfile: gemfiles/rails3.2.gemfile
            task: rake test
    steps:
    - uses: zendesk/checkout@v2
    - uses: zendesk/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.rvm }}
    - name: setup_env
      run: echo "BUNDLE_GEMFILE=$GITHUB_WORKSPACE/${{ matrix.gemfile }}" >> $GITHUB_ENV
      shell: bash
    - name: install
      run: bundle install --without debug documentation
    - name: Run ${{ matrix.task }} with Ruby ${{ matrix.rvm }} and ${{ matrix.gemfile }}
      run: bundle exec ${{ matrix.task }}

name: repo-checks
on:
  push:
    branches: [master]
  pull_request:
jobs:
  main:
    name: rvm-gemfile
    runs-on: [ubuntu-latest]
    env:
      RAILS_ENV: test
    strategy:
      fail-fast: false
      max-parallel: 20
      matrix:
        rvm:
          - 2.5.8
          - 2.6
          - 2.7
        gemfile:
          - gemfiles/rails3.2.gemfile
          - gemfiles/rails4.2.gemfile
          - gemfiles/rails5.0.gemfile
          - gemfiles/rails5.1.gemfile
          - gemfiles/rails5.2.gemfile
          - gemfiles/rails6.0.gemfile
        task:
          - rake test
        exclude:
          - rvm: 2.7
            gemfile: gemfiles/rails3.2.gemfile
            task: rake test
    steps:
    - uses: zendesk/checkout@v2
    - uses: zendesk/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.rvm }}
    - name: setup_env
      run: echo "BUNDLE_GEMFILE=$GITHUB_WORKSPACE/${{ matrix.gemfile }}" >> $GITHUB_ENV
      shell: bash
    - name: install
      run: |
        gem update --system
        bundle install --without debug documentation
    - name: Run ${{ matrix.task }} with Ruby ${{ matrix.rvm }} and ${{ matrix.gemfile }}
      run: bundle exec ${{ matrix.task }}

Update GHA for the runtime rails versions 5.2 and 6.0
Update GHA for the runtime rails versions 5.2 and 6.0
