Skip to content

Commit 0c1aab3

Browse files
Add ruby version matrix to the CI
1 parent a3223a6 commit 0c1aab3

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/rspec.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ jobs:
66
test:
77
runs-on: ubuntu-latest
88

9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
ruby-version: ['3.2', '3.1', '3.0']
13+
914
services:
1015
redis:
1116
image: redis:alpine
@@ -18,10 +23,12 @@ jobs:
1823
- 6379:6379
1924

2025
steps:
21-
- uses: actions/checkout@v3
22-
- uses: ruby/setup-ruby@v1
26+
- uses: actions/checkout@v4
27+
28+
- name: Set up Ruby ${{ matrix.ruby-version }}
29+
uses: ruby/setup-ruby@v1
2330
with:
24-
ruby-version: 2.7
31+
ruby-version: ${{ matrix.ruby-version }}
2532
bundler-cache: true
2633

2734
- name: Run tests

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7-buster
1+
FROM ruby:3.2
22

33
ARG BUNDLE_SAGEONEGEMS__JFROG__IO
44

cache_store_redis.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
1313
spec.homepage = 'https://github.com/sage/cache_store'
1414
spec.license = 'MIT'
1515

16+
spec.required_ruby_version = '>= 3.0'
17+
1618
spec.files = Dir.glob("{bin,lib}/**/**/**")
1719
spec.bindir = 'exe'
1820
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)