name: ci

on: push

jobs:
  test:
    strategy:
      matrix:
        rails: ['6.0', '5.2']
        ruby: ['2.5', '2.6', '2.7']

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Run gem install bundler
        run: gem install bundler

      - name: Run bundle install
        env:
          RAILS_VERSION: ${{ matrix.rails }}
        run: bundle install

      - name: Run bundle exec rspec
        env:
          RAILS_VERSION: ${{ matrix.rails }}
        run: bundle exec rspec

name: ci

on: push

jobs:
  test:
    strategy:
      matrix:
        rails: ['6.0', '5.2']
        ruby: ['2.5', '2.6', '2.7']

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Run apt-get update
        run: apt-get update

      - name: Run apt-get install build-essential
        run: apt-get install build-essential

      - name: Run gem install bundler
        run: gem install bundler

      - name: Run bundle install
        env:
          RAILS_VERSION: ${{ matrix.rails }}
        run: bundle install

      - name: Run bundle exec rspec
        env:
          RAILS_VERSION: ${{ matrix.rails }}
        run: bundle exec rspec

Install toolchain for building native extensions
Install toolchain for building native extensions
