-
Notifications
You must be signed in to change notification settings - Fork 192
55 lines (49 loc) · 1.13 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on: [push, pull_request]
jobs:
test:
name: "Test on Redis ${{ matrix.redis-version }}, Ruby ${{ matrix.ruby-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
redis-version:
- '4.0'
- 4.1
- 4.2
- 4.3
- 4.4
- 4.5
- 4.6
- latest
ruby-version:
- head
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
- '2.4'
- jruby-9.3
- jruby-9.2
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
env:
REDIS_VERSION: "${{ matrix.redis-version }}"
steps:
- uses: actions/checkout@v3
- 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