Skip to content

Commit ad5d1b8

Browse files
committed
Test with all supported Rails versions
1 parent 63a8939 commit ad5d1b8

File tree

5 files changed

+42
-6
lines changed

5 files changed

+42
-6
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,26 @@ jobs:
99
- "3.2"
1010
- "3.3"
1111
- "3.4"
12-
continue-on-error: [false]
12+
rails-version:
13+
- "7.0"
14+
- "7.1"
15+
- "7.2"
16+
- "8.0"
17+
exclude:
18+
- ruby-version: "3.4"
19+
rails-version: "7.0"
20+
- ruby-version: "3.1"
21+
rails-version: "8.0"
22+
fail-fast: false
23+
env:
24+
BUNDLE_GEMFILE: gemfiles/Gemfile.rails-${{ matrix.rails-version }}
1325

14-
name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
26+
name: ${{ format('Tests (Ruby {0}) (Rails {1})', matrix.ruby-version, matrix.rails-version) }}
1527
runs-on: ubuntu-latest
16-
continue-on-error: ${{ matrix.continue-on-error }}
1728

1829
steps:
1930
- uses: actions/checkout@v4
2031

21-
- name: Remove Gemfile.lock
22-
run: rm -f Gemfile.lock
23-
2432
- name: Install Ruby
2533
uses: ruby/setup-ruby@v1
2634
with:

gemfiles/Gemfile.rails-7.0

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 7.0.0"
6+
gem "rake"
7+
gem "debug"

gemfiles/Gemfile.rails-7.1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 7.1.0"
6+
gem "rake"
7+
gem "debug"

gemfiles/Gemfile.rails-7.2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 7.2.0"
6+
gem "rake"
7+
gem "debug"

gemfiles/Gemfile.rails-8.0

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 8.0"
6+
gem "rake"
7+
gem "debug"

0 commit comments

Comments
 (0)