name: tests

on: [push, pull_request]
  
jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby: [2.6, 2.7]

    name: Ruby ${{ matrix.ruby }}
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby ${{ matrix.ruby }}
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
        restore-keys: |
          ${{ runner.os }}-gems-
    - name: Install dependencies
      run: |
        gem install bundler
        bundle config path vendor/bundle
        bundle install --jobs 4 --retry 3
    - name: Run tests
      run: |
        bundle exec rake

Add Github action to perform CI
Add Github action to perform CI

Introduces a new Github action called "tests" that will be used for CI on push and pull requests. This new action uses a matrix to run tests on both Ruby 2.6 and 2.7