name: Run unit tests

# For testing
on:
  push

# on:
#   pull_request:
#     branches:
#       - master

jobs:
  verify:
    runs-on: macos-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up Ruby 2.7
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.7'
      - name: Restore cache
        uses: actions/cache@v2
        with:
          path: |
            vendor
          key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock') }}
      - name: Install Ruby dependencies
        run: |
          bundle config set --local path vendor
          bundle check || bundle install

name: Run unit tests

# For testing
on:
  push

# on:
#   pull_request:
#     branches:
#       - master

jobs:
  verify:
    runs-on: macos-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v2
      - name: Set up Ruby 2.7
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.7'
      - name: Restore cache
        uses: actions/cache@v2
        with:
          path: |
            vendor
          key: ${{ runner.os }}-ruby2.7-${{ hashFiles('Gemfile.lock') }}
      - name: Install Ruby dependencies
        run: |
          bundle config set --local path vendor
          bundle check || bundle install

Include Ruby version in cache key
Include Ruby version in cache key
