Skip to content

Commit

Permalink
Depshield CI on multiple rails versions / Add rails 7.1 support to ni…
Browse files Browse the repository at this point in the history
…tro_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**
  • Loading branch information
xjunior authored May 21, 2024
1 parent 0c65358 commit bf28006
Show file tree
Hide file tree
Showing 22 changed files with 692 additions and 17 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/dep_shield.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@ jobs:
with:
package: ${{ github.workflow }}
workdir: "packages/${{ github.workflow }}"
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile','gemfiles/rails_7_1.gemfile']"
ruby: '["3.0","3.1","3.2","3.3"]'
exclude: |-
[
{ 'ruby': '3.2', 'gemfile': 'gemfiles/rails_6_0.gemfile'},
{ 'ruby': '3.3', 'gemfile': 'gemfiles/rails_6_0.gemfile'},
{ 'ruby': '3.2', 'gemfile': 'gemfiles/rails_6_1.gemfile'},
{ 'ruby': '3.3', 'gemfile': 'gemfiles/rails_6_1.gemfile'},
]
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/nitro_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
with:
package: ${{ github.workflow }}
workdir: "packages/${{ github.workflow }}"
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile']"
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile','gemfiles/rails_7_1.gemfile']"
ruby: '["3.0","3.1","3.2","3.3"]'
secrets: inherit
4 changes: 4 additions & 0 deletions packages/dep_shield/Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ end
appraise "rails-7-0" do
gem "rails", "7.0.8.1"
end

appraise "rails-7-1" do
gem "rails", "7.1.3.3"
end
3 changes: 2 additions & 1 deletion packages/dep_shield/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ source "https://rubygems.org"
# Specify your gem's dependencies in dep_shield.gemspec
gemspec

gem "rails", "<= 7.1.3.2"
gem "nitro_config", path: "../nitro_config"
gem "rails", "<= 7.1.3.3"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
gem "rubocop-powerhome", path: "../rubocop-powerhome"
11 changes: 8 additions & 3 deletions packages/dep_shield/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
PATH
remote: ../nitro_config
specs:
nitro_config (0.2.0)
activesupport (>= 6.0.6.1)

PATH
remote: ../rubocop-powerhome
specs:
Expand Down Expand Up @@ -150,8 +156,6 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.1)
nitro_config (0.2.0)
activesupport (>= 5.2.8.1)
nokogiri (1.16.5)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -288,7 +292,8 @@ DEPENDENCIES
combustion (~> 1.4)
dep_shield!
license_finder (>= 7.0)
rails (<= 7.1.3.2)
nitro_config!
rails (<= 7.1.3.3)
rake (~> 13.0)
rspec (~> 3.0)
rubocop-powerhome!
Expand Down
1 change: 1 addition & 0 deletions packages/dep_shield/gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

source "https://rubygems.org"

gem "nitro_config", path: "../../nitro_config"
gem "rails", "6.0.6.1"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
Expand Down
9 changes: 7 additions & 2 deletions packages/dep_shield/gemfiles/rails_6_0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
PATH
remote: ../../nitro_config
specs:
nitro_config (0.2.0)
activesupport (>= 6.0.6.1)

PATH
remote: ../../rubocop-powerhome
specs:
Expand Down Expand Up @@ -124,8 +130,6 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.1)
nitro_config (0.2.0)
activesupport (>= 5.2.8.1)
nokogiri (1.16.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -260,6 +264,7 @@ DEPENDENCIES
combustion (~> 1.4)
dep_shield!
license_finder (>= 7.0)
nitro_config!
rails (= 6.0.6.1)
rake (~> 13.0)
rspec (~> 3.0)
Expand Down
1 change: 1 addition & 0 deletions packages/dep_shield/gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

source "https://rubygems.org"

gem "nitro_config", path: "../../nitro_config"
gem "rails", "6.1.7.7"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
Expand Down
9 changes: 7 additions & 2 deletions packages/dep_shield/gemfiles/rails_6_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
PATH
remote: ../../nitro_config
specs:
nitro_config (0.2.0)
activesupport (>= 6.0.6.1)

PATH
remote: ../../rubocop-powerhome
specs:
Expand Down Expand Up @@ -128,8 +134,6 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.1)
nitro_config (0.2.0)
activesupport (>= 5.2.8.1)
nokogiri (1.16.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -263,6 +267,7 @@ DEPENDENCIES
combustion (~> 1.4)
dep_shield!
license_finder (>= 7.0)
nitro_config!
rails (= 6.1.7.7)
rake (~> 13.0)
rspec (~> 3.0)
Expand Down
1 change: 1 addition & 0 deletions packages/dep_shield/gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

source "https://rubygems.org"

gem "nitro_config", path: "../../nitro_config"
gem "rails", "7.0.8.1"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
Expand Down
9 changes: 7 additions & 2 deletions packages/dep_shield/gemfiles/rails_7_0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
PATH
remote: ../../nitro_config
specs:
nitro_config (0.2.0)
activesupport (>= 6.0.6.1)

PATH
remote: ../../rubocop-powerhome
specs:
Expand Down Expand Up @@ -134,8 +140,6 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.1)
nitro_config (0.2.0)
activesupport (>= 5.2.8.1)
nokogiri (1.16.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -262,6 +266,7 @@ DEPENDENCIES
combustion (~> 1.4)
dep_shield!
license_finder (>= 7.0)
nitro_config!
rails (= 7.0.8.1)
rake (~> 13.0)
rspec (~> 3.0)
Expand Down
13 changes: 13 additions & 0 deletions packages/dep_shield/gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "nitro_config", path: "../../nitro_config"
gem "rails", "7.1.3.3"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
gem "rubocop-powerhome", path: "../../rubocop-powerhome"

gemspec path: "../"
Loading

0 comments on commit bf28006

Please sign in to comment.