-
Notifications
You must be signed in to change notification settings - Fork 2.4k
40 lines (33 loc) · 1.01 KB
/
redis.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
name: Redis CI
on:
push:
branches: [ main ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
# on-hover of the checkmark, show "Ruby 3 / Redis 6" instead of "(3 / 6)"
name: "Ruby ${{ matrix.ruby }} / Redis ${{ matrix.redis }}"
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
redis: [6, 7]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: ${{ matrix.ruby }}
- name: Set up Redis ${{ matrix.redis }}
uses: supercharge/redis-github-action@1.8.0
with:
redis-version: ${{ matrix.redis }}
- name: Run tests
run: bundle exec rake