Skip to content

Commit

Permalink
Test with all supported versions of Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 2, 2023
1 parent 7536fb0 commit 401a6c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ jobs:
fail-fast: false
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
rails: [ '6.0', '6.1', '7.0', 'edge' ]
script: [test]
experimental: [false]
include:
- ruby: '2.7'
script: templates:test
experimental: true

env:
RAILS_VERSION: ${{ matrix.rails }}

steps:
- uses: actions/checkout@v3
- name: Set up Ruby
Expand Down
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gemspec

gem "rails", github: "rails/rails"
if ENV["RAILS_VERSION"] == "edge"
gem "rails", github: "rails/rails", branch: "main"
elsif ENV["RAILS_VERSION"]
gem "activesupport", "~> #{ENV["RAILS_VERSION"]}.0"
else
gem "rails"
end
gem "rack"

group :development do
Expand Down

0 comments on commit 401a6c3

Please sign in to comment.