Skip to content

Commit 097963e

Browse files
committed
Enable CI testing of rails 6 and rails 7
This change ensures Litestack can be tested against dependencies of Rails 6 and Rails 7 in CI For more context https://github.com/ruby/setup-ruby?tab=readme-ov-file#matrix-of-gemfiles
1 parent 951fdf5 commit 097963e

File tree

5 files changed

+279
-0
lines changed

5 files changed

+279
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
strategy:
2424
matrix:
2525
ruby-version: ['3.0', '3.1', '3.2']
26+
gemfile: ['gemfiles/rails70.gemfile', 'gemfiles/rails71.gemfile']
27+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
28+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
2629

2730
steps:
2831
- uses: actions/checkout@v3

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ source "https://rubygems.org"
44

55
# Specify your gem's dependencies in litestack.gemspec
66
gemspec
7+
8+
gem "rails"

gemfiles/rails70.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+
gemspec path: "../"
4+
5+
gem "rails", "~> 7.0"

gemfiles/rails71.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+
gemspec path: "../"
4+
5+
gem "rails", "~> 7.1"

gemfiles/rails71.gemfile.lock

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
litestack (0.4.3)
5+
erubi
6+
hanami-router
7+
oj
8+
rack
9+
sqlite3
10+
tilt
11+
12+
GEM
13+
remote: https://rubygems.org/
14+
specs:
15+
actioncable (7.1.3.2)
16+
actionpack (= 7.1.3.2)
17+
activesupport (= 7.1.3.2)
18+
nio4r (~> 2.0)
19+
websocket-driver (>= 0.6.1)
20+
zeitwerk (~> 2.6)
21+
actionmailbox (7.1.3.2)
22+
actionpack (= 7.1.3.2)
23+
activejob (= 7.1.3.2)
24+
activerecord (= 7.1.3.2)
25+
activestorage (= 7.1.3.2)
26+
activesupport (= 7.1.3.2)
27+
mail (>= 2.7.1)
28+
net-imap
29+
net-pop
30+
net-smtp
31+
actionmailer (7.1.3.2)
32+
actionpack (= 7.1.3.2)
33+
actionview (= 7.1.3.2)
34+
activejob (= 7.1.3.2)
35+
activesupport (= 7.1.3.2)
36+
mail (~> 2.5, >= 2.5.4)
37+
net-imap
38+
net-pop
39+
net-smtp
40+
rails-dom-testing (~> 2.2)
41+
actionpack (7.1.3.2)
42+
actionview (= 7.1.3.2)
43+
activesupport (= 7.1.3.2)
44+
nokogiri (>= 1.8.5)
45+
racc
46+
rack (>= 2.2.4)
47+
rack-session (>= 1.0.1)
48+
rack-test (>= 0.6.3)
49+
rails-dom-testing (~> 2.2)
50+
rails-html-sanitizer (~> 1.6)
51+
actiontext (7.1.3.2)
52+
actionpack (= 7.1.3.2)
53+
activerecord (= 7.1.3.2)
54+
activestorage (= 7.1.3.2)
55+
activesupport (= 7.1.3.2)
56+
globalid (>= 0.6.0)
57+
nokogiri (>= 1.8.5)
58+
actionview (7.1.3.2)
59+
activesupport (= 7.1.3.2)
60+
builder (~> 3.1)
61+
erubi (~> 1.11)
62+
rails-dom-testing (~> 2.2)
63+
rails-html-sanitizer (~> 1.6)
64+
activejob (7.1.3.2)
65+
activesupport (= 7.1.3.2)
66+
globalid (>= 0.3.6)
67+
activemodel (7.1.3.2)
68+
activesupport (= 7.1.3.2)
69+
activerecord (7.1.3.2)
70+
activemodel (= 7.1.3.2)
71+
activesupport (= 7.1.3.2)
72+
timeout (>= 0.4.0)
73+
activestorage (7.1.3.2)
74+
actionpack (= 7.1.3.2)
75+
activejob (= 7.1.3.2)
76+
activerecord (= 7.1.3.2)
77+
activesupport (= 7.1.3.2)
78+
marcel (~> 1.0)
79+
activesupport (7.1.3.2)
80+
base64
81+
bigdecimal
82+
concurrent-ruby (~> 1.0, >= 1.0.2)
83+
connection_pool (>= 2.2.5)
84+
drb
85+
i18n (>= 1.6, < 2)
86+
minitest (>= 5.1)
87+
mutex_m
88+
tzinfo (~> 2.0)
89+
ast (2.4.2)
90+
base64 (0.2.0)
91+
bigdecimal (3.1.6)
92+
builder (3.2.4)
93+
concurrent-ruby (1.2.3)
94+
connection_pool (2.4.1)
95+
crass (1.0.6)
96+
date (3.3.4)
97+
docile (1.4.0)
98+
drb (2.2.1)
99+
erubi (1.12.0)
100+
globalid (1.2.1)
101+
activesupport (>= 6.1)
102+
hanami-router (0.6.2)
103+
hanami-utils (~> 0.7)
104+
http_router (~> 0.11)
105+
hanami-utils (0.9.2)
106+
http_router (0.11.2)
107+
rack (>= 1.0.0)
108+
url_mount (~> 0.2.1)
109+
i18n (1.14.1)
110+
concurrent-ruby (~> 1.0)
111+
io-console (0.7.2)
112+
irb (1.11.2)
113+
rdoc
114+
reline (>= 0.4.2)
115+
json (2.7.1)
116+
language_server-protocol (3.17.0.3)
117+
lint_roller (1.1.0)
118+
loofah (2.22.0)
119+
crass (~> 1.0.2)
120+
nokogiri (>= 1.12.0)
121+
mail (2.8.1)
122+
mini_mime (>= 0.1.1)
123+
net-imap
124+
net-pop
125+
net-smtp
126+
marcel (1.0.4)
127+
mini_mime (1.1.5)
128+
minitest (5.22.2)
129+
mutex_m (0.2.0)
130+
net-imap (0.4.10)
131+
date
132+
net-protocol
133+
net-pop (0.1.2)
134+
net-protocol
135+
net-protocol (0.2.2)
136+
timeout
137+
net-smtp (0.4.0.1)
138+
net-protocol
139+
nio4r (2.7.0)
140+
nokogiri (1.16.2-arm64-darwin)
141+
racc (~> 1.4)
142+
oj (3.16.3)
143+
bigdecimal (>= 3.0)
144+
parallel (1.24.0)
145+
parser (3.3.0.5)
146+
ast (~> 2.4.1)
147+
racc
148+
psych (5.1.2)
149+
stringio
150+
racc (1.7.3)
151+
rack (3.0.9.1)
152+
rack-session (2.0.0)
153+
rack (>= 3.0.0)
154+
rack-test (2.1.0)
155+
rack (>= 1.3)
156+
rackup (2.1.0)
157+
rack (>= 3)
158+
webrick (~> 1.8)
159+
rails (7.1.3.2)
160+
actioncable (= 7.1.3.2)
161+
actionmailbox (= 7.1.3.2)
162+
actionmailer (= 7.1.3.2)
163+
actionpack (= 7.1.3.2)
164+
actiontext (= 7.1.3.2)
165+
actionview (= 7.1.3.2)
166+
activejob (= 7.1.3.2)
167+
activemodel (= 7.1.3.2)
168+
activerecord (= 7.1.3.2)
169+
activestorage (= 7.1.3.2)
170+
activesupport (= 7.1.3.2)
171+
bundler (>= 1.15.0)
172+
railties (= 7.1.3.2)
173+
rails-dom-testing (2.2.0)
174+
activesupport (>= 5.0.0)
175+
minitest
176+
nokogiri (>= 1.6)
177+
rails-html-sanitizer (1.6.0)
178+
loofah (~> 2.21)
179+
nokogiri (~> 1.14)
180+
railties (7.1.3.2)
181+
actionpack (= 7.1.3.2)
182+
activesupport (= 7.1.3.2)
183+
irb
184+
rackup (>= 1.0.0)
185+
rake (>= 12.2)
186+
thor (~> 1.0, >= 1.2.2)
187+
zeitwerk (~> 2.6)
188+
rainbow (3.1.1)
189+
rake (13.1.0)
190+
rdoc (6.6.2)
191+
psych (>= 4.0.0)
192+
regexp_parser (2.9.0)
193+
reline (0.4.3)
194+
io-console (~> 0.5)
195+
rexml (3.2.6)
196+
rubocop (1.61.0)
197+
json (~> 2.3)
198+
language_server-protocol (>= 3.17.0)
199+
parallel (~> 1.10)
200+
parser (>= 3.3.0.2)
201+
rainbow (>= 2.2.2, < 4.0)
202+
regexp_parser (>= 1.8, < 3.0)
203+
rexml (>= 3.2.5, < 4.0)
204+
rubocop-ast (>= 1.30.0, < 2.0)
205+
ruby-progressbar (~> 1.7)
206+
unicode-display_width (>= 2.4.0, < 3.0)
207+
rubocop-ast (1.31.1)
208+
parser (>= 3.3.0.4)
209+
rubocop-performance (1.20.2)
210+
rubocop (>= 1.48.1, < 2.0)
211+
rubocop-ast (>= 1.30.0, < 2.0)
212+
ruby-progressbar (1.13.0)
213+
sequel (5.78.0)
214+
bigdecimal
215+
simplecov (0.22.0)
216+
docile (~> 1.1)
217+
simplecov-html (~> 0.11)
218+
simplecov_json_formatter (~> 0.1)
219+
simplecov-html (0.12.3)
220+
simplecov_json_formatter (0.1.4)
221+
sqlite3 (1.7.2-arm64-darwin)
222+
standard (1.34.0)
223+
language_server-protocol (~> 3.17.0.2)
224+
lint_roller (~> 1.0)
225+
rubocop (~> 1.60)
226+
standard-custom (~> 1.0.0)
227+
standard-performance (~> 1.3)
228+
standard-custom (1.0.2)
229+
lint_roller (~> 1.0)
230+
rubocop (~> 1.50)
231+
standard-performance (1.3.1)
232+
lint_roller (~> 1.1)
233+
rubocop-performance (~> 1.20.2)
234+
stringio (3.1.0)
235+
thor (1.3.1)
236+
tilt (2.3.0)
237+
timeout (0.4.1)
238+
tzinfo (2.0.6)
239+
concurrent-ruby (~> 1.0)
240+
unicode-display_width (2.5.0)
241+
url_mount (0.2.1)
242+
rack
243+
webrick (1.8.1)
244+
websocket-driver (0.7.6)
245+
websocket-extensions (>= 0.1.0)
246+
websocket-extensions (0.1.5)
247+
zeitwerk (2.6.13)
248+
249+
PLATFORMS
250+
arm64-darwin
251+
252+
DEPENDENCIES
253+
litestack!
254+
minitest
255+
rack (~> 3.0)
256+
rails (~> 7.1)
257+
railties
258+
rake
259+
sequel
260+
simplecov
261+
standard
262+
263+
BUNDLED WITH
264+
2.5.3

0 commit comments

Comments
 (0)