Skip to content

Commit dbe8b1c

Browse files
authored
Merge pull request #199 from PikachuEXE/feature/run-specific-migration-only
Update CI to run against rails 7.1 & ruby 3.2
2 parents 468ae45 + ef5ba2d commit dbe8b1c

File tree

12 files changed

+151
-30
lines changed

12 files changed

+151
-30
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, feature/run-specific-migration-only ]
66
pull_request:
77
branches: ['**']
88

@@ -39,35 +39,41 @@ jobs:
3939
fail-fast: false
4040
matrix:
4141
rails:
42-
- "5.2"
43-
- "6.0"
4442
- "6.1"
4543
- "7.0"
44+
- "7.1"
4645
sequel:
4746
- "~> 5.0"
4847
ruby:
4948
- "2.6"
5049
- "2.7"
5150
- "3.0"
5251
- "3.1"
52+
- "3.2"
5353
# - "jruby"
54-
exclude:
55-
- ruby: "2.7"
56-
rails: "5.2"
57-
- ruby: "3.0"
58-
rails: "5.2"
59-
- ruby: "3.1"
54+
include:
55+
- ruby: "2.6"
6056
rails: "5.2"
61-
- ruby: "3.0"
57+
sequel: "~> 5.0"
58+
- ruby: "2.6"
6259
rails: "6.0"
63-
- ruby: "3.1"
60+
sequel: "~> 5.0"
61+
- ruby: "2.7"
6462
rails: "6.0"
63+
sequel: "~> 5.0"
64+
exclude:
6565
- ruby: "3.1"
6666
rails: "6.1"
67+
- ruby: "3.2"
68+
rails: "6.1"
6769
- ruby: "2.6"
6870
rails: "7.0"
6971
- ruby: "jruby"
7072
rails: "7.0"
73+
- ruby: "2.6"
74+
rails: "7.1"
75+
- ruby: "jruby"
76+
rails: "7.1"
7177
name: Rails ${{ matrix.rails }}, Sequel ${{ matrix.sequel }}, Ruby ${{ matrix.ruby }}
7278

7379
env:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
33
gemspec
44

55
gem 'actionpack'
6-
gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
6+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
77

88
gem 'pry'
99

ci/rails-5.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gemspec :path => '../'
88

99
gem 'sequel', "#{ENV['SEQUEL']}"
1010

11-
gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
11+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
1212

1313
gem 'rspec-rails', '~> 5.0'
1414

ci/rails-6.0.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gemspec :path => '../'
88

99
gem 'sequel', "#{ENV['SEQUEL']}"
1010

11-
gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
11+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
1212

1313
gem 'rspec-rails', '~> 5.0'
1414

ci/rails-6.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gemspec :path => '../'
88

99
gem 'sequel', "#{ENV['SEQUEL']}"
1010

11-
gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
11+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
1212

1313
gem 'rspec-rails', '~> 5.0'
1414

ci/rails-7.0.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gemspec :path => '../'
88

99
gem 'sequel', "#{ENV['SEQUEL']}"
1010

11-
gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
11+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
1212

1313
gem 'rspec-rails', '~> 5.0'
1414

ci/rails-7.1.gemfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'railties', '~> 7.1.0'
4+
gem 'activemodel', '~> 7.1.0'
5+
gem 'actionpack', '~> 7.1.0'
6+
7+
gemspec :path => '../'
8+
9+
gem 'sequel', "#{ENV['SEQUEL']}"
10+
11+
gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
12+
13+
gem 'rspec-rails', '~> 5.0'
14+
15+
# MRI/Rubinius Adapter Dependencies
16+
platform :ruby do
17+
gem 'pg'
18+
gem 'mysql2'
19+
gem 'sqlite3'
20+
end
21+
22+
# JRuby Adapter Dependencies
23+
platform :jruby do
24+
gem 'jdbc-sqlite3'
25+
gem 'jdbc-mysql'
26+
gem 'jdbc-postgres'
27+
end

spec/internal/Rakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,10 @@ end
66
Bundler.require :default, :development, :test
77

88
Combustion.path = ''
9-
Combustion.initialize! 'sequel_rails'
9+
Combustion.initialize! 'sequel_rails' do
10+
if Rails.gem_version >= Gem::Version.new('7.1.0')
11+
# Suppress warning about `cache_format_version`
12+
config.active_support.cache_format_version = 7.1
13+
end
14+
end
1015
Combustion::Application.load_tasks
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Sequel.migration do
2+
change do
3+
alter_table :users do
4+
add_column :display_name, String, :text => true
5+
end
6+
end
7+
end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Sequel.migration do
2+
change do
3+
alter_table :users do
4+
add_column :github_username, String, :text => true
5+
end
6+
end
7+
end

0 commit comments

Comments
 (0)