Skip to content

Commit 4f7e392

Browse files
committed
Test with all supported versions of Rails
1 parent 7536fb0 commit 4f7e392

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
ruby: ['2.7', '3.0', '3.1', '3.2', 'head']
18+
rails: [ '6.0', '6.1', '7.0', 'edge' ]
1819
script: [test]
1920
experimental: [false]
2021
include:
2122
- ruby: '2.7'
23+
rails: '7.0'
2224
script: templates:test
2325
experimental: true
2426

27+
env:
28+
RAILS_VERSION: ${{ matrix.rails }}
29+
2530
steps:
2631
- uses: actions/checkout@v3
2732
- name: Set up Ruby

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
66

77
gemspec
88

9-
gem "rails", github: "rails/rails"
9+
if ENV["RAILS_VERSION"] == "edge"
10+
gem "rails", github: "rails/rails", branch: "main"
11+
elsif ENV["RAILS_VERSION"]
12+
gem "activesupport", "~> #{ENV["RAILS_VERSION"]}.0"
13+
else
14+
gem "rails"
15+
end
1016
gem "rack"
1117

1218
group :development do

0 commit comments

Comments
 (0)