Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jan 20, 2024
1 parent 219ed83 commit 2597727
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
44 changes: 25 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,34 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: bundle update && bundle exec rake test
- run: bundle update && bundle exec rake test:sinatra
name: "rake test:rails SINATRA=2.2.4"
- run: bundle install && bundle exec rake test
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=2.2.4"
env:
SINATRA: 2.2.4
- run: bundle update && bundle exec rake test:sinatra
name: "rake test:rails SINATRA=3.0.6"
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=3.0.6"
if: ${{ matrix.ruby != '2.5' }}
env:
SINATRA: 3.0.6
- run: bundle update && bundle exec rake test:sinatra
name: "rake test:rails SINATRA=3.1.0"
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=3.1.0"
if: ${{ matrix.ruby != '2.5' }}
env:
SINATRA: 3.1.0
- run: bundle update && bundle exec rake test:sinatra
name: "rake test:rails SINATRA=3.2.0"
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=3.2.0"
if: ${{ matrix.ruby != '2.5' }}
env:
SINATRA: 3.2.0
- run: bundle update && bundle exec rake test:sinatra
name: "rake test:rails SINATRA=main"
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=4.0.0"
if: ${{ matrix.ruby != '2.5' }}
env:
SINATRA: 4.0.0
- run: bundle install && bundle exec rake test:sinatra
name: "rake test:sinatra SINATRA=main"
if: ${{ matrix.ruby != '2.5' && matrix.ruby != '2.6' }}
env:
SINATRA: main
rails-5:
Expand All @@ -55,7 +61,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: bundle update && bundle exec rake test:rails
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=5.2.8"
env:
RAILS: 5.2.8
Expand All @@ -69,11 +75,11 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- run: bundle update && bundle exec rake test:rails
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=6.0.6"
env:
RAILS: 6.0.6
- run: bundle update && bundle exec rake test:rails
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=6.1.7"
env:
RAILS: 6.1.7
Expand All @@ -87,15 +93,15 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- run: bundle update && bundle exec rake test:rails
name: "rake test:rails RAILS=7.0.7"
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=7.0.8"
env:
RAILS: 7.0.8
- run: bundle update && bundle exec rake test:rails
name: "rake test:rails RAILS=7.1.0"
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=7.1.2"
env:
RAILS: 7.1.2
- run: bundle update && bundle exec rake test:rails
- run: bundle install && bundle exec rake test:rails
name: "rake test:rails RAILS=main"
env:
RAILS: main
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ if ENV['SINATRA']
if ENV['SINATRA'] == 'main'
gem 'sinatra', github: 'sinatra/sinatra'
else
gem 'sinatra', tag: "v#{ENV['SINATRA']}"
gem 'sinatra', "= #{ENV['SINATRA']}"
end
end

0 comments on commit 2597727

Please sign in to comment.