Skip to content

Commit d6f0f2f

Browse files
committed
Run ci against different rails versions
1 parent 363e49c commit d6f0f2f

6 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
database: [mysql, postgres, sqlite]
20+
gemfile: [ rails_7_2, rails_8_0, rails_8_1, rails_main ]
2021
ruby-version:
2122
- 3.3
2223
- 3.4
@@ -37,6 +38,7 @@ jobs:
3738
- 55432:5432
3839
env:
3940
TARGET_DB: ${{ matrix.database }}
41+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
4042
steps:
4143
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4244
- name: Set up Ruby

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/test/dummy/storage/
1010
/test/dummy/tmp/
1111
Gemfile.lock
12+
/gemfiles/*.lock
1213
/bench/db/*.sqlite3
1314
/bench/db/*.sqlite3-*
1415
/bench/log/*.log

gemfiles/rails_7_2.gemfile

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

gemfiles/rails_8_0.gemfile

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

gemfiles/rails_8_1.gemfile

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

gemfiles/rails_main.gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gem "railties", branch: "main", git: "https://github.com/rails/rails.git"
4+
5+
gemspec path: "../"

0 commit comments

Comments
 (0)