.github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 2.5
- 2.6
- 2.7
- head
- jruby
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
name: Tests Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
env:
REDIS_HOST: localhost