Skip to content

Commit bf28006

Browse files
authored
Depshield CI on multiple rails versions / Add rails 7.1 support to nitro_config (#266)
- **Run dep_shield with multiple rails versions in CI** - **Add rails 7.1 support to nitro_config** - **Add rails 7.1 support to dep_shield**
1 parent 0c65358 commit bf28006

22 files changed

+692
-17
lines changed

.github/workflows/dep_shield.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,13 @@ jobs:
99
with:
1010
package: ${{ github.workflow }}
1111
workdir: "packages/${{ github.workflow }}"
12+
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile','gemfiles/rails_7_1.gemfile']"
1213
ruby: '["3.0","3.1","3.2","3.3"]'
14+
exclude: |-
15+
[
16+
{ 'ruby': '3.2', 'gemfile': 'gemfiles/rails_6_0.gemfile'},
17+
{ 'ruby': '3.3', 'gemfile': 'gemfiles/rails_6_0.gemfile'},
18+
{ 'ruby': '3.2', 'gemfile': 'gemfiles/rails_6_1.gemfile'},
19+
{ 'ruby': '3.3', 'gemfile': 'gemfiles/rails_6_1.gemfile'},
20+
]
1321
secrets: inherit

.github/workflows/nitro_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
with:
1010
package: ${{ github.workflow }}
1111
workdir: "packages/${{ github.workflow }}"
12-
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile']"
12+
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile','gemfiles/rails_7_1.gemfile']"
1313
ruby: '["3.0","3.1","3.2","3.3"]'
1414
secrets: inherit

packages/dep_shield/Appraisals

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ end
1111
appraise "rails-7-0" do
1212
gem "rails", "7.0.8.1"
1313
end
14+
15+
appraise "rails-7-1" do
16+
gem "rails", "7.1.3.3"
17+
end

packages/dep_shield/Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ source "https://rubygems.org"
55
# Specify your gem's dependencies in dep_shield.gemspec
66
gemspec
77

8-
gem "rails", "<= 7.1.3.2"
8+
gem "nitro_config", path: "../nitro_config"
9+
gem "rails", "<= 7.1.3.3"
910
gem "rake", "~> 13.0"
1011
gem "rspec", "~> 3.0"
1112
gem "rubocop-powerhome", path: "../rubocop-powerhome"

packages/dep_shield/Gemfile.lock

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
PATH
2+
remote: ../nitro_config
3+
specs:
4+
nitro_config (0.2.0)
5+
activesupport (>= 6.0.6.1)
6+
17
PATH
28
remote: ../rubocop-powerhome
39
specs:
@@ -150,8 +156,6 @@ GEM
150156
net-smtp (0.5.0)
151157
net-protocol
152158
nio4r (2.7.1)
153-
nitro_config (0.2.0)
154-
activesupport (>= 5.2.8.1)
155159
nokogiri (1.16.5)
156160
mini_portile2 (~> 2.8.2)
157161
racc (~> 1.4)
@@ -288,7 +292,8 @@ DEPENDENCIES
288292
combustion (~> 1.4)
289293
dep_shield!
290294
license_finder (>= 7.0)
291-
rails (<= 7.1.3.2)
295+
nitro_config!
296+
rails (<= 7.1.3.3)
292297
rake (~> 13.0)
293298
rspec (~> 3.0)
294299
rubocop-powerhome!

packages/dep_shield/gemfiles/rails_6_0.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
source "https://rubygems.org"
66

7+
gem "nitro_config", path: "../../nitro_config"
78
gem "rails", "6.0.6.1"
89
gem "rake", "~> 13.0"
910
gem "rspec", "~> 3.0"

packages/dep_shield/gemfiles/rails_6_0.gemfile.lock

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
PATH
2+
remote: ../../nitro_config
3+
specs:
4+
nitro_config (0.2.0)
5+
activesupport (>= 6.0.6.1)
6+
17
PATH
28
remote: ../../rubocop-powerhome
39
specs:
@@ -124,8 +130,6 @@ GEM
124130
net-smtp (0.5.0)
125131
net-protocol
126132
nio4r (2.7.1)
127-
nitro_config (0.2.0)
128-
activesupport (>= 5.2.8.1)
129133
nokogiri (1.16.4)
130134
mini_portile2 (~> 2.8.2)
131135
racc (~> 1.4)
@@ -260,6 +264,7 @@ DEPENDENCIES
260264
combustion (~> 1.4)
261265
dep_shield!
262266
license_finder (>= 7.0)
267+
nitro_config!
263268
rails (= 6.0.6.1)
264269
rake (~> 13.0)
265270
rspec (~> 3.0)

packages/dep_shield/gemfiles/rails_6_1.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
source "https://rubygems.org"
66

7+
gem "nitro_config", path: "../../nitro_config"
78
gem "rails", "6.1.7.7"
89
gem "rake", "~> 13.0"
910
gem "rspec", "~> 3.0"

packages/dep_shield/gemfiles/rails_6_1.gemfile.lock

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
PATH
2+
remote: ../../nitro_config
3+
specs:
4+
nitro_config (0.2.0)
5+
activesupport (>= 6.0.6.1)
6+
17
PATH
28
remote: ../../rubocop-powerhome
39
specs:
@@ -128,8 +134,6 @@ GEM
128134
net-smtp (0.5.0)
129135
net-protocol
130136
nio4r (2.7.1)
131-
nitro_config (0.2.0)
132-
activesupport (>= 5.2.8.1)
133137
nokogiri (1.16.4)
134138
mini_portile2 (~> 2.8.2)
135139
racc (~> 1.4)
@@ -263,6 +267,7 @@ DEPENDENCIES
263267
combustion (~> 1.4)
264268
dep_shield!
265269
license_finder (>= 7.0)
270+
nitro_config!
266271
rails (= 6.1.7.7)
267272
rake (~> 13.0)
268273
rspec (~> 3.0)

packages/dep_shield/gemfiles/rails_7_0.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
source "https://rubygems.org"
66

7+
gem "nitro_config", path: "../../nitro_config"
78
gem "rails", "7.0.8.1"
89
gem "rake", "~> 13.0"
910
gem "rspec", "~> 3.0"

0 commit comments

Comments
 (0)