name: ruby

on:
  push:
  pull_request:
    branches:
      - master
  schedule:
    - cron: '0 1 * * SUN'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: [ '2.4', '2.5', '2.6', '2.7', '3.0', 'ruby-head' ]
    name: ruby ${{ matrix.ruby-version }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
    - name: Install dependencies
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
    - name: Lint files
      run: |
        bundle exec rubocop
    - name: Test with Rake
      run: |
        bundle exec rake



name: ruby

on:
  push:
  pull_request:
    branches:
      - master
  schedule:
    - cron: '0 1 * * SUN'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: [ '2.4', '2.5', '2.6', '2.7', '3.0', 'ruby-head' ]
    name: ruby ${{ matrix.ruby-version }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true
    - name: Install dependencies
      run: bundle install
    - name: Lint files
      run: bundle exec rubocop
    - name: Test with Rake
      run: bundle exec rake



Simplify CI action and use bundler caching
Simplify CI action and use bundler caching

    * .github/workflows/ruby.yml:
