Skip to content

Commit

Permalink
Try to add a rack matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Oct 20, 2023
1 parent df36f13 commit 58a946f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: ubuntu-latest
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: ['2.7', '3.0', '3.1', '3.2', head, truffleruby, truffleruby-head]
gemfile: [ rack2, rack3 ]
runs-on: ${{ matrix.os }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rake
- run: bundle exec rake
5 changes: 5 additions & 0 deletions gemfiles/rack2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec

gem 'rack', '~> 2'
5 changes: 5 additions & 0 deletions gemfiles/rack3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec

gem 'rack', '~> 3'

0 comments on commit 58a946f

Please sign in to comment.