Sha256: c86e9454ade9797b5ab978ce1408ab7da44d40b1ea7344d7650471fecd9fc26f

Contents?: true

Size: 906 Bytes

Versions: 1

Compression:

Stored size: 906 Bytes

Contents

name: Tests
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  rspec:
    timeout-minutes: 10
    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby-version:
          - '2.6'
          - '2.7'
          - '3.0'
        redis-version:
          - '6.2'

    services:
      redis:
          image: redis:${{ matrix.redis-version }}-alpine
          options: >-
            --health-cmd "redis-cli ping"
            --health-interval 10s
            --health-timeout 5s
            --health-retries 5
          ports:
            - 6379:6379

    steps:
      - uses: actions/checkout@v2

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

      - name: Install dependencies
        run: bundle install

      - name: Run tests
        run: bundle exec rspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mock_redis-0.30.0 .github/workflows/tests.yml