Skip to content

Commit

Permalink
Add support for testing with multiple versions of Rack
Browse files Browse the repository at this point in the history
  • Loading branch information
chubchenko committed Oct 29, 2024
1 parent a3a6933 commit 0010394
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3' ]
gemfile:
- "rack_2"
- "rack_3"
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 1 addition & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec

gem 'rake'
gem 'pry'

group :test do
gem 'rspec', '~> 3'
gem 'rack-test'
gem 'rack-session'
end
7 changes: 7 additions & 0 deletions gemfiles/rack_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rack", "~> 2.2"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rack_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rack", "~> 3.0"

gemspec path: "../"
5 changes: 5 additions & 0 deletions warden.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ Gem::Specification.new do |spec|
end
spec.require_paths = ["lib"]
spec.add_dependency "rack", ">= 2.2.3"

spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "rack-session"
end

0 comments on commit 0010394

Please sign in to comment.