Skip to content

Commit 9019ea0

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

File tree

5 files changed

+36
-4
lines changed

5 files changed

+36
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99
- "3.2"
1010
- "3.3"
1111
- "3.4"
12+
rails-version:
13+
- "7.0"
14+
- "7.1"
15+
- "7.2"
16+
- "8.0"
1217
continue-on-error: [false]
18+
env:
19+
BUNDLE_GEMFILE: gemfiles/Gemfile.rails-${{ matrix.rails-version }}
1320

14-
name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
21+
name: ${{ format('Tests (Ruby {0}) (Rails {1})', matrix.ruby-version, matrix.rails-version) }}
1522
runs-on: ubuntu-latest
1623
continue-on-error: ${{ matrix.continue-on-error }}
1724

1825
steps:
1926
- uses: actions/checkout@v4
2027

21-
- name: Remove Gemfile.lock
22-
run: rm -f Gemfile.lock
23-
2428
- name: Install Ruby
2529
uses: ruby/setup-ruby@v1
2630
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)