Skip to content

Commit

Permalink
Matrix test redis version (#1814)
Browse files Browse the repository at this point in the history
* Matrix test redis version

* Earlier redis version

* Some exclusions, more modern redis server

* Revert "Some exclusions, more modern redis server"

This reverts commit 93af940.

* Adding supported redis versions

* Apply suggestions from code review

Co-authored-by: nicholas a. evans <nicholas.evans@gmail.com>

Co-authored-by: nicholas a. evans <nicholas.evans@gmail.com>
  • Loading branch information
iloveitaly and nevans committed Aug 20, 2022
1 parent c8096bf commit 8ea2e4b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ jobs:
strategy:
fail-fast: false
matrix:
redis-version:
- 4.0
- 4.1
- 4.2
- 4.3
- 4.4
- 4.5
- 4.6
- latest
ruby-version:
- 2.3
- 2.4
Expand All @@ -21,6 +30,13 @@ jobs:
- "3.0"
- 3.1
- head
exclude:
- { ruby-version: 2.3, redis-version: 4.5 }
- { ruby-version: 2.3, redis-version: 4.6 }
- { ruby-version: 2.3, redis-version: latest }
env:
REDIS_VERSION: "${{ matrix.redis-version }}"

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
Expand Down
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
source "https://rubygems.org"

gemspec

gem "json"
case redis_version = ENV.fetch('REDIS_VERSION', 'latest')
when 'latest'
gem 'redis', '~> 4.7'
else
gem 'redis', "~> #{redis_version}.0"
end

gem "json"
gem "minitest", "~> 5.11"
gem "mocha", "~> 1.11", require: false
gem "rack-test", "~> 2.0"
Expand Down

0 comments on commit 8ea2e4b

Please sign in to comment.