Skip to content

Commit 37f6f15

Browse files
stackmystackjdelporte
authored andcommitted
ci: support rails 8
1 parent d02c9e1 commit 37f6f15

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ jobs:
2424
matrix:
2525
versions:
2626
[
27+
{ ruby: "3.4", rails: 8, arelx: 2 },
2728
{ ruby: "3.4", rails: 7_2, arelx: 2 },
2829
{ ruby: "3.4", rails: 7_1, arelx: 2 },
2930
{ ruby: "3.4", rails: 7, arelx: 2 },
3031
{ ruby: "3.4", rails: 6_1, arelx: 2 },
32+
{ ruby: "3.3", rails: 8, arelx: 2 },
3133
{ ruby: "3.3", rails: 7_2, arelx: 2 },
3234
{ ruby: "3.3", rails: 7_1, arelx: 2 },
3335
{ ruby: "3.3", rails: 7, arelx: 2 },
3436
{ ruby: "3.3", rails: 6_1, arelx: 2 },
37+
{ ruby: "3.2", rails: 8, arelx: 2 },
3538
{ ruby: "3.2", rails: 7_2, arelx: 2 },
3639
{ ruby: "3.2", rails: 7_1, arelx: 2 },
3740
{ ruby: "3.2", rails: 7, arelx: 2 },
@@ -88,14 +91,17 @@ jobs:
8891
matrix:
8992
versions:
9093
[
94+
{ ruby: "3.4", rails: 8, arelx: 2 },
9195
{ ruby: "3.4", rails: 7_2, arelx: 2 },
9296
{ ruby: "3.4", rails: 7_1, arelx: 2 },
9397
{ ruby: "3.4", rails: 7, arelx: 2 },
9498
{ ruby: "3.4", rails: 6_1, arelx: 2 },
99+
{ ruby: "3.3", rails: 8, arelx: 2 },
95100
{ ruby: "3.3", rails: 7_2, arelx: 2 },
96101
{ ruby: "3.3", rails: 7_1, arelx: 2 },
97102
{ ruby: "3.3", rails: 7, arelx: 2 },
98103
{ ruby: "3.3", rails: 6_1, arelx: 2 },
104+
{ ruby: "3.2", rails: 8, arelx: 2 },
99105
{ ruby: "3.2", rails: 7_2, arelx: 2 },
100106
{ ruby: "3.2", rails: 7_1, arelx: 2 },
101107
{ ruby: "3.2", rails: 7, arelx: 2 },
@@ -152,14 +158,17 @@ jobs:
152158
fail-fast: false
153159
matrix:
154160
versions: [
161+
{ ruby: "3.4", rails: 8, arelx: 2 },
155162
{ ruby: "3.4", rails: 7_2, arelx: 2 },
156163
{ ruby: "3.4", rails: 7_1, arelx: 2 },
157164
{ ruby: "3.4", rails: 7, arelx: 2 },
158165
{ ruby: "3.4", rails: 6_1, arelx: 2 },
166+
{ ruby: "3.3", rails: 8, arelx: 2 },
159167
{ ruby: "3.3", rails: 7_2, arelx: 2 },
160168
{ ruby: "3.3", rails: 7_1, arelx: 2 },
161169
{ ruby: "3.3", rails: 7, arelx: 2 },
162170
{ ruby: "3.3", rails: 6_1, arelx: 2 },
171+
{ ruby: "3.2", rails: 8, arelx: 2 },
163172
{ ruby: "3.2", rails: 7_2, arelx: 2 },
164173
{ ruby: "3.2", rails: 7_1, arelx: 2 },
165174
{ ruby: "3.2", rails: 7, arelx: 2 },
@@ -241,14 +250,17 @@ jobs:
241250
fail-fast: false
242251
matrix:
243252
versions: [
253+
{ ruby: "3.4", rails: 8, arelx: 2 },
244254
{ ruby: "3.4", rails: 7_2, arelx: 2 },
245255
{ ruby: "3.4", rails: 7_1, arelx: 2 },
246256
{ ruby: "3.4", rails: 7, arelx: 2 },
247257
{ ruby: "3.4", rails: 6_1, arelx: 2 },
258+
{ ruby: "3.3", rails: 8, arelx: 2 },
248259
{ ruby: "3.3", rails: 7_2, arelx: 2 },
249260
{ ruby: "3.3", rails: 7_1, arelx: 2 },
250261
{ ruby: "3.3", rails: 7, arelx: 2 },
251262
{ ruby: "3.3", rails: 6_1, arelx: 2 },
263+
{ ruby: "3.2", rails: 8, arelx: 2 },
252264
{ ruby: "3.2", rails: 7_2, arelx: 2 },
253265
{ ruby: "3.2", rails: 7_1, arelx: 2 },
254266
{ ruby: "3.2", rails: 7, arelx: 2 },
@@ -352,14 +364,18 @@ jobs:
352364
fail-fast: false
353365
matrix:
354366
versions: [
367+
{ ruby: "3.4", rails: 8, arelx: 2 },
355368
{ ruby: "3.4", rails: 7_2, arelx: 2 },
356369
{ ruby: "3.4", rails: 7_1, arelx: 2 },
357370
{ ruby: "3.4", rails: 7, arelx: 2 },
358371
{ ruby: "3.4", rails: 6_1, arelx: 2 },
372+
{ ruby: "3.3", rails: 8, arelx: 2 },
373+
{ ruby: "3.3", rails: 7_2, arelx: 2 },
359374
{ ruby: "3.3", rails: 7_1, arelx: 2 },
360375
{ ruby: "3.3", rails: 7, arelx: 2 },
361376
{ ruby: "3.3", rails: 6_1, arelx: 2 },
362377
{ ruby: "3.3", rails: 6, arelx: 2 },
378+
{ ruby: "3.2", rails: 8, arelx: 2 },
363379
{ ruby: "3.2", rails: 7_1, arelx: 2 },
364380
{ ruby: "3.2", rails: 7, arelx: 2 },
365381
{ ruby: "3.2", rails: 6_1, arelx: 2 },

gemfiles/rails8.gemfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rails', '~> 8.0'
4+
5+
group :development, :test do
6+
gem 'ruby-lsp', platforms: %i[mri]
7+
gem 'debug', platforms: %i[mri]
8+
9+
gem 'activesupport', '~> 8.0'
10+
gem 'activemodel', '~> 8.0'
11+
gem 'activerecord', '~> 8.0'
12+
13+
gem 'sqlite3', '~> 2.1', platforms: [:mri]
14+
gem 'mysql2', '~>0.5', platforms: [:mri]
15+
gem 'pg', '~> 1.5', platforms: [:mri]
16+
17+
gem 'tiny_tds', platforms: %i[mri mingw x64_mingw mswin]
18+
gem 'activerecord-sqlserver-adapter', '~> 8.0', platforms: %i[mri mingw x64_mingw mswin]
19+
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw]
20+
21+
gem 'ruby-oci8', platforms: %i[mri mswin mingw] if ENV.has_key? 'ORACLE_HOME'
22+
gem 'activerecord-oracle_enhanced-adapter', '~> 8.0' if ENV.has_key? 'ORACLE_HOME'
23+
24+
# for JRuby
25+
gem 'jdbc-mssql', platforms: :jruby, require: true
26+
gem 'jdbc-sqlite3', platform: :jruby
27+
gem 'activerecord-jdbcmysql-adapter', platforms: :jruby
28+
gem 'activerecord-jdbcpostgresql-adapter', platforms: :jruby
29+
gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
30+
31+
# Ruby 3.4+ removes the following gems from the standard distribution.
32+
# Warnings are emitted from 3.3.
33+
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create('3.3.0')
34+
gem 'base64'
35+
gem 'bigdecimal'
36+
gem 'mutex_m'
37+
end
38+
end
39+
40+
gemspec path: Dir.pwd

0 commit comments

Comments
 (0)