Skip to content

Commit

Permalink
added matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tonklon committed Feb 16, 2023
1 parent 4784251 commit 416609e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ jobs:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
gemfile:
- Gemfile
- puma5
- puma5_capybara36
- puma6
exclude:
- ruby-version: '2.6'
gemfile: puma6
- ruby-version: '2.6'
gemfile: puma5
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand Down
9 changes: 9 additions & 0 deletions gemfiles/puma5.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

source 'http://rubygems.org'

gemspec path: '..'

gem 'capybara', '> 3.37'
gem 'puma', '~> 5.0'
gem 'sinatra', '~> 2.0'
9 changes: 9 additions & 0 deletions gemfiles/puma5_capybara36.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

source 'http://rubygems.org'

gemspec path: '..'

gem 'capybara', '= 3.36'
gem 'puma', '~> 5.0'
gem 'sinatra', '~> 2.0'
9 changes: 9 additions & 0 deletions gemfiles/puma6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

source 'http://rubygems.org'

gemspec path: '..'

gem 'capybara', '> 3.37'
gem 'puma', '~> 5.0'
gem 'sinatra', '~> 2.0'

0 comments on commit 416609e

Please sign in to comment.