name: Ruby

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.x
    - name: Build and test with rspec
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rspec

Add workflow to run specs on every commit
Add workflow to run specs on every commit