name: Run unit tests

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Set up Ruby 2.6
      uses: actions/setup-ruby@v1
      with:
        ruby-version: 2.6.6

    - name: Unit tests
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rake

name: Run unit tests

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Ruby 2.6
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.7.4

    - name: Unit tests
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rake

Update CI with modern actions
Update CI with modern actions

- Bump actions/checkout
- Migrate to ruby/setup-ruby as old one is deprecated