Skip to content

Commit dbb10ba

Browse files
authored
Improve CI and fix missing assertions (#923)
Backport some changes from 7.2 branch. - Use only value for Ruby versions to reduce complexity - Rename `deps` to `rails` for parity with Arbre and Active Admin gems Close #922
1 parent a8cd775 commit dbb10ba

File tree

6 files changed

+95
-121
lines changed

6 files changed

+95
-121
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ on:
88

99
jobs:
1010
test:
11-
name: test (${{ matrix.ruby.name }}, ${{ matrix.rails }})
11+
name: test (ruby-${{ matrix.ruby }}, ${{ matrix.rails }})
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 15
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
ruby:
18-
- name: ruby-3.0
19-
value: "3.0"
20-
- name: ruby-3.1
21-
value: 3.1
22-
- name: ruby-3.2
23-
value: 3.2
24-
- name: ruby-3.3
25-
value: 3.3
18+
- "3.0"
19+
- "3.1"
20+
- "3.2"
21+
- "3.3"
2622
rails:
2723
- rails_61
2824
- rails_70
@@ -39,17 +35,17 @@ jobs:
3935
if: matrix.rails != 'rails_71'
4036
- uses: ruby/setup-ruby@v1
4137
with:
42-
ruby-version: ${{ matrix.ruby.value }}
38+
ruby-version: ${{ matrix.ruby }}
4339
bundler-cache: true
4440
- name: Run tests
4541
env:
4642
COVERAGE: true
4743
run: |
4844
bundle exec rake test TESTOPTS="--verbose"
49-
mv coverage/coverage.xml coverage/coverage-ruby-${{ matrix.ruby.value }}-${{ matrix.rails }}.xml
45+
mv coverage/coverage.xml coverage/coverage-ruby-${{ matrix.ruby }}-${{ matrix.rails }}.xml
5046
- uses: actions/upload-artifact@v4
5147
with:
52-
name: coverage-ruby-${{ matrix.ruby.value }}-${{ matrix.rails }}
48+
name: coverage-ruby-${{ matrix.ruby }}-${{ matrix.rails }}
5349
path: coverage
5450
if-no-files-found: error
5551

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Version 1.14.0
44

55
* Remove upper bound dependency limits from gemspec.
6-
* Allow using Rails 7.1.
6+
* Allow using Rails 7.1 [#873][].
77
* Remove support for Ruby `< 2.6`.
88

99
## Version 1.13.1
@@ -223,3 +223,5 @@ _No changes_.
223223
* Added more helper_methods.
224224
* Added Rails 2.3.0 and changed tests to work with ActionController::TestCase.
225225
* First release. Support to I18n, singleton controllers, polymorphic controllers, belongs_to, nested_belongs_to and url helpers.
226+
227+
[#873]: https://github.com/activeadmin/inherited_resources/pull/873

Gemfile.lock

Lines changed: 66 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -10,71 +10,71 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (7.1.3.3)
14-
actionpack (= 7.1.3.3)
15-
activesupport (= 7.1.3.3)
13+
actioncable (7.1.3.4)
14+
actionpack (= 7.1.3.4)
15+
activesupport (= 7.1.3.4)
1616
nio4r (~> 2.0)
1717
websocket-driver (>= 0.6.1)
1818
zeitwerk (~> 2.6)
19-
actionmailbox (7.1.3.3)
20-
actionpack (= 7.1.3.3)
21-
activejob (= 7.1.3.3)
22-
activerecord (= 7.1.3.3)
23-
activestorage (= 7.1.3.3)
24-
activesupport (= 7.1.3.3)
19+
actionmailbox (7.1.3.4)
20+
actionpack (= 7.1.3.4)
21+
activejob (= 7.1.3.4)
22+
activerecord (= 7.1.3.4)
23+
activestorage (= 7.1.3.4)
24+
activesupport (= 7.1.3.4)
2525
mail (>= 2.7.1)
2626
net-imap
2727
net-pop
2828
net-smtp
29-
actionmailer (7.1.3.3)
30-
actionpack (= 7.1.3.3)
31-
actionview (= 7.1.3.3)
32-
activejob (= 7.1.3.3)
33-
activesupport (= 7.1.3.3)
29+
actionmailer (7.1.3.4)
30+
actionpack (= 7.1.3.4)
31+
actionview (= 7.1.3.4)
32+
activejob (= 7.1.3.4)
33+
activesupport (= 7.1.3.4)
3434
mail (~> 2.5, >= 2.5.4)
3535
net-imap
3636
net-pop
3737
net-smtp
3838
rails-dom-testing (~> 2.2)
39-
actionpack (7.1.3.3)
40-
actionview (= 7.1.3.3)
41-
activesupport (= 7.1.3.3)
39+
actionpack (7.1.3.4)
40+
actionview (= 7.1.3.4)
41+
activesupport (= 7.1.3.4)
4242
nokogiri (>= 1.8.5)
4343
racc
4444
rack (>= 2.2.4)
4545
rack-session (>= 1.0.1)
4646
rack-test (>= 0.6.3)
4747
rails-dom-testing (~> 2.2)
4848
rails-html-sanitizer (~> 1.6)
49-
actiontext (7.1.3.3)
50-
actionpack (= 7.1.3.3)
51-
activerecord (= 7.1.3.3)
52-
activestorage (= 7.1.3.3)
53-
activesupport (= 7.1.3.3)
49+
actiontext (7.1.3.4)
50+
actionpack (= 7.1.3.4)
51+
activerecord (= 7.1.3.4)
52+
activestorage (= 7.1.3.4)
53+
activesupport (= 7.1.3.4)
5454
globalid (>= 0.6.0)
5555
nokogiri (>= 1.8.5)
56-
actionview (7.1.3.3)
57-
activesupport (= 7.1.3.3)
56+
actionview (7.1.3.4)
57+
activesupport (= 7.1.3.4)
5858
builder (~> 3.1)
5959
erubi (~> 1.11)
6060
rails-dom-testing (~> 2.2)
6161
rails-html-sanitizer (~> 1.6)
62-
activejob (7.1.3.3)
63-
activesupport (= 7.1.3.3)
62+
activejob (7.1.3.4)
63+
activesupport (= 7.1.3.4)
6464
globalid (>= 0.3.6)
65-
activemodel (7.1.3.3)
66-
activesupport (= 7.1.3.3)
67-
activerecord (7.1.3.3)
68-
activemodel (= 7.1.3.3)
69-
activesupport (= 7.1.3.3)
65+
activemodel (7.1.3.4)
66+
activesupport (= 7.1.3.4)
67+
activerecord (7.1.3.4)
68+
activemodel (= 7.1.3.4)
69+
activesupport (= 7.1.3.4)
7070
timeout (>= 0.4.0)
71-
activestorage (7.1.3.3)
72-
actionpack (= 7.1.3.3)
73-
activejob (= 7.1.3.3)
74-
activerecord (= 7.1.3.3)
75-
activesupport (= 7.1.3.3)
71+
activestorage (7.1.3.4)
72+
actionpack (= 7.1.3.4)
73+
activejob (= 7.1.3.4)
74+
activerecord (= 7.1.3.4)
75+
activesupport (= 7.1.3.4)
7676
marcel (~> 1.0)
77-
activesupport (7.1.3.3)
77+
activesupport (7.1.3.4)
7878
base64
7979
bigdecimal
8080
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -88,13 +88,11 @@ GEM
8888
ast (2.4.2)
8989
base64 (0.2.0)
9090
bigdecimal (3.1.8)
91-
bigdecimal (3.1.8-java)
92-
builder (3.2.4)
93-
concurrent-ruby (1.3.1)
91+
builder (3.3.0)
92+
concurrent-ruby (1.3.3)
9493
connection_pool (2.4.1)
9594
crass (1.0.6)
9695
date (3.3.4)
97-
date (3.3.4-java)
9896
docile (1.4.0)
9997
drb (2.2.1)
10098
erubi (1.12.0)
@@ -106,13 +104,10 @@ GEM
106104
i18n (1.14.5)
107105
concurrent-ruby (~> 1.0)
108106
io-console (0.7.2)
109-
io-console (0.7.2-java)
110107
irb (1.13.1)
111108
rdoc (>= 4.0.0)
112109
reline (>= 0.4.2)
113-
jar-dependencies (0.4.1)
114110
json (2.7.2)
115-
json (2.7.2-java)
116111
language_server-protocol (3.17.0.3)
117112
loofah (2.22.0)
118113
crass (~> 1.0.2)
@@ -124,7 +119,7 @@ GEM
124119
net-smtp
125120
marcel (1.0.4)
126121
mini_mime (1.1.5)
127-
mini_portile2 (2.8.6)
122+
mini_portile2 (2.8.7)
128123
minitest (5.23.1)
129124
minitest-reporters (1.6.1)
130125
ansi
@@ -134,7 +129,7 @@ GEM
134129
mocha (2.3.0)
135130
ruby2_keywords (>= 0.0.5)
136131
mutex_m (0.2.0)
137-
net-imap (0.4.11)
132+
net-imap (0.4.12)
138133
date
139134
net-protocol
140135
net-pop (0.1.2)
@@ -144,50 +139,46 @@ GEM
144139
net-smtp (0.5.0)
145140
net-protocol
146141
nio4r (2.7.3)
147-
nio4r (2.7.3-java)
148142
nokogiri (1.16.5)
149143
mini_portile2 (~> 2.8.2)
150144
racc (~> 1.4)
151-
nokogiri (1.16.5-arm64-darwin)
145+
nokogiri (1.16.5-aarch64-linux)
152146
racc (~> 1.4)
153-
nokogiri (1.16.5-java)
147+
nokogiri (1.16.5-arm64-darwin)
154148
racc (~> 1.4)
155149
nokogiri (1.16.5-x86_64-darwin)
156150
racc (~> 1.4)
157151
nokogiri (1.16.5-x86_64-linux)
158152
racc (~> 1.4)
159-
parallel (1.24.0)
160-
parser (3.3.2.0)
153+
parallel (1.25.1)
154+
parser (3.3.3.0)
161155
ast (~> 2.4.1)
162156
racc
163157
psych (5.1.2)
164158
stringio
165-
psych (5.1.2-java)
166-
jar-dependencies (>= 0.1.7)
167159
racc (1.8.0)
168-
racc (1.8.0-java)
169-
rack (3.0.11)
160+
rack (3.1.3)
170161
rack-session (2.0.0)
171162
rack (>= 3.0.0)
172163
rack-test (2.1.0)
173164
rack (>= 1.3)
174165
rackup (2.1.0)
175166
rack (>= 3)
176167
webrick (~> 1.8)
177-
rails (7.1.3.3)
178-
actioncable (= 7.1.3.3)
179-
actionmailbox (= 7.1.3.3)
180-
actionmailer (= 7.1.3.3)
181-
actionpack (= 7.1.3.3)
182-
actiontext (= 7.1.3.3)
183-
actionview (= 7.1.3.3)
184-
activejob (= 7.1.3.3)
185-
activemodel (= 7.1.3.3)
186-
activerecord (= 7.1.3.3)
187-
activestorage (= 7.1.3.3)
188-
activesupport (= 7.1.3.3)
168+
rails (7.1.3.4)
169+
actioncable (= 7.1.3.4)
170+
actionmailbox (= 7.1.3.4)
171+
actionmailer (= 7.1.3.4)
172+
actionpack (= 7.1.3.4)
173+
actiontext (= 7.1.3.4)
174+
actionview (= 7.1.3.4)
175+
activejob (= 7.1.3.4)
176+
activemodel (= 7.1.3.4)
177+
activerecord (= 7.1.3.4)
178+
activestorage (= 7.1.3.4)
179+
activesupport (= 7.1.3.4)
189180
bundler (>= 1.15.0)
190-
railties (= 7.1.3.3)
181+
railties (= 7.1.3.4)
191182
rails-controller-testing (1.0.5)
192183
actionpack (>= 5.0.1.rc1)
193184
actionview (>= 5.0.1.rc1)
@@ -199,9 +190,9 @@ GEM
199190
rails-html-sanitizer (1.6.0)
200191
loofah (~> 2.21)
201192
nokogiri (~> 1.14)
202-
railties (7.1.3.3)
203-
actionpack (= 7.1.3.3)
204-
activesupport (= 7.1.3.3)
193+
railties (7.1.3.4)
194+
actionpack (= 7.1.3.4)
195+
activesupport (= 7.1.3.4)
205196
irb
206197
rackup (>= 1.0.0)
207198
rake (>= 12.2)
@@ -212,13 +203,13 @@ GEM
212203
rdoc (6.7.0)
213204
psych (>= 4.0.0)
214205
regexp_parser (2.9.2)
215-
reline (0.5.8)
206+
reline (0.5.9)
216207
io-console (~> 0.5)
217208
responders (3.1.1)
218209
actionpack (>= 5.2)
219210
railties (>= 5.2)
220-
rexml (3.2.8)
221-
strscan (>= 3.0.9)
211+
rexml (3.3.0)
212+
strscan
222213
rubocop (1.64.1)
223214
json (~> 2.3)
224215
language_server-protocol (>= 3.17.0)
@@ -251,7 +242,6 @@ GEM
251242
simplecov_json_formatter (0.1.4)
252243
stringio (3.1.0)
253244
strscan (3.1.0)
254-
strscan (3.1.0-java)
255245
thor (1.3.1)
256246
timeout (0.4.1)
257247
tzinfo (2.0.6)
@@ -261,14 +251,12 @@ GEM
261251
webrick (1.8.1)
262252
websocket-driver (0.7.6)
263253
websocket-extensions (>= 0.1.0)
264-
websocket-driver (0.7.6-java)
265-
websocket-extensions (>= 0.1.0)
266254
websocket-extensions (0.1.5)
267255
zeitwerk (2.6.15)
268256

269257
PLATFORMS
258+
aarch64-linux
270259
arm64-darwin
271-
java
272260
ruby
273261
x86_64-darwin
274262
x86_64-linux

0 commit comments

Comments
 (0)