on: [push, pull_request] jobs: test: runs-on: ubuntu-latest services: redis: image: redis ports: - 6379:6379 strategy: matrix: ruby-version: ['3.0', 2.7, 2.6, 2.5, 2.4] steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies run: bundle install - name: Run tests run: bundle exec rake