2022-01-14 02:54:05 -05:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ruby-version:
|
2022-12-25 10:09:21 -05:00
|
|
|
- '3.2'
|
2022-01-14 02:54:05 -05:00
|
|
|
- '3.1'
|
|
|
|
- '3.0'
|
|
|
|
- '2.7'
|
|
|
|
- '2.6'
|
|
|
|
- '2.5'
|
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
options: >-
|
|
|
|
--health-cmd "redis-cli ping"
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
|
|
|
|
steps:
|
2022-12-25 10:09:21 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-14 02:54:05 -05:00
|
|
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby-version }}
|
|
|
|
bundler-cache: true # 'bundle install' and cache
|
|
|
|
- name: Run tests
|
|
|
|
run: bundle exec rake
|