name: Test

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  build:
    runs-on: ubuntu-latest
    name: Test on Rails ${{ matrix.rails_version }}
    strategy:
      matrix:
        rails_version:
          - ~> 5.1.0
          - ~> 5.2.0
          - ~> 6.0.0.rc2
    steps:
    - uses: actions/checkout@v1
    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x
    - name: Build and test
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rake
      env:
        RAILS_VERSION:  ${{ matrix.rails_version }}

Add workfow for GitHub Actions CI
Add workfow for GitHub Actions CI