Skip to content

Commit

Permalink
Add ruby version matrix to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraCollins-Sage committed Oct 17, 2024
1 parent a3223a6 commit 0c1aab3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: ['3.2', '3.1', '3.0']

services:
redis:
image: redis:alpine
Expand All @@ -18,10 +23,12 @@ jobs:
- 6379:6379

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7-buster
FROM ruby:3.2

ARG BUNDLE_SAGEONEGEMS__JFROG__IO

Expand Down
2 changes: 2 additions & 0 deletions cache_store_redis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/sage/cache_store'
spec.license = 'MIT'

spec.required_ruby_version = '>= 3.0'

spec.files = Dir.glob("{bin,lib}/**/**/**")
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down

0 comments on commit 0c1aab3

Please sign in to comment.