---

name: "Tests"

"on": [push]

jobs:
  tests:
    runs-on: "ubuntu-latest"

    strategy:
      matrix:
        gemfile:
          - "Gemfile"
          - "gemfiles/railties_5.2.gemfile"
          - "gemfiles/railties_6.0.gemfile"

    steps:
      - uses: "actions/checkout@v1"
      - uses: "actions/setup-ruby@v1"
        with:
          ruby-version: "2.7"
      - name: "Install Latest Bundler"
        run: |
          gem install bundler --no-document
          bundle config --global gemfile ${{ matrix.gemfile }}
          bundle config path vendor/bundle
          bundle config set without "tools benchmarks docs"
      - name: "Bundle Install"
        run: "bundle install --jobs 4 --retry 3"
      - name: "Run Tests"
        run: "bundle exec rake spec"

Use GitHub Actions for CI
Use GitHub Actions for CI
