name: Ruby

on: [push,pull_request]

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
        ruby-version: ['3.0', 2.7, 2.6, 2.5]
        redis-version: [4, 5, 6]

    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2

    - name: Redis Server in GitHub Actions
      uses: supercharge/redis-github-action@1.1.0

    - name: Set up Ruby ${{ matrix.ruby-version }}
      uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
        ruby-version: ${{ matrix.ruby-version }}

    - name: Run tests & lint
      run: bundle exec rake

Add CI testing via GitHub Actions
Add CI testing via GitHub Actions
