Skip to content

Commit 7bb701a

Browse files
committed
Add Rails 8.1 to CI test matrix
- Add gemfiles/rails_8_1.gemfile with Rails 8.1 dependency - Include rails_8_1.gemfile in test workflow matrix - Add exclusions for incompatible Ruby/Rails combinations: - Ruby 3.0 excluded from Rails 8.1 tests - Ruby 3.1 excluded from Rails 8.0 tests (duplicate removal) - Ruby 3.1 excluded from rails_edge tests in edge workflow
1 parent 4f67e5f commit 7bb701a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/edge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
exclude:
1212
- ruby: '3.0'
1313
gemfile: rails_edge
14+
- ruby: '3.1'
15+
gemfile: rails_edge
1416
runs-on: ubuntu-latest
1517
continue-on-error: true
1618
env:

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
ruby: ['3.0', '3.1', '3.2', '3.3', '3.4']
27-
gemfile: [Gemfile, gemfiles/rack_2_0.gemfile, gemfiles/rack_3_0.gemfile, gemfiles/rack_3_1.gemfile, gemfiles/rack_3_2.gemfile, gemfiles/rails_7_0.gemfile, gemfiles/rails_7_1.gemfile, gemfiles/rails_7_2.gemfile, gemfiles/rails_8_0.gemfile]
27+
gemfile: [Gemfile, gemfiles/rack_2_0.gemfile, gemfiles/rack_3_0.gemfile, gemfiles/rack_3_1.gemfile, gemfiles/rack_3_2.gemfile, gemfiles/rails_7_0.gemfile, gemfiles/rails_7_1.gemfile, gemfiles/rails_7_2.gemfile, gemfiles/rails_8_0.gemfile, gemfiles/rails_8_1.gemfile]
2828
specs: ['spec --exclude-pattern=spec/integration/**/*_spec.rb']
2929
include:
3030
- ruby: '3.3'
@@ -53,8 +53,12 @@ jobs:
5353
gemfile: gemfiles/rails_7_2.gemfile
5454
- ruby: '3.0'
5555
gemfile: gemfiles/rails_8_0.gemfile
56+
- ruby: '3.0'
57+
gemfile: gemfiles/rails_8_1.gemfile
5658
- ruby: '3.1'
5759
gemfile: gemfiles/rails_8_0.gemfile
60+
- ruby: '3.1'
61+
gemfile: gemfiles/rails_8_1.gemfile
5862
runs-on: ubuntu-latest
5963
env:
6064
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}

gemfiles/rails_8_1.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
eval_gemfile '../Gemfile'
4+
5+
gem 'rails', '~> 8.1'
6+
gem 'tzinfo-data', require: false

0 commit comments

Comments
 (0)