Skip to content

Commit 0f9f6c9

Browse files
committed
add supported rails versions to ci
1 parent b209088 commit 0f9f6c9

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
ruby: ['3.4', '3.3', '3.2', '3.1']
1817
database: ['sqlite', 'postgres', 'mysql', 'mariadb']
18+
ruby: ['3.4', '3.3', '3.2']
19+
rails: ['7.0', '7.1', '7.2', '8.0', 'edge']
1920
services:
2021
postgres:
2122
image: postgres:15
@@ -45,6 +46,8 @@ jobs:
4546
--health-retries=5
4647
ports:
4748
- 3307:3306 # avoid conflict w/ mysql
49+
env:
50+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{replace(matrix.rails, '.', '_')}}.gemfile
4851
steps:
4952
- name: Checkout
5053
uses: actions/checkout@v4
@@ -72,5 +75,6 @@ jobs:
7275
- name: Test
7376
run: bundle exec rake test
7477
# sqlite is not supported yet because it doesn't support
75-
# the union syntax we're using
76-
continue-on-error: ${{matrix.database == 'sqlite'}}
78+
# the union syntax we're using (and we don't consider
79+
# failures for unreleased rails versions a blocker)
80+
continue-on-error: ${{matrix.database == 'sqlite' || matrix.rails == 'edge'}}

gemfiles/rails_7_0.gemfile

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

gemfiles/rails_7_1.gemfile

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

gemfiles/rails_7_2.gemfile

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

gemfiles/rails_8_0.gemfile

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

0 commit comments

Comments
 (0)