Skip to content

Commit

Permalink
Include solidus_promotions in release tasks
Browse files Browse the repository at this point in the history
We don't want to include `solidus_promotions` as a dependency in
`solidus` yet, but we do want to release the gem, so it should appear in
the all the lists of Solidus sub-gems.
  • Loading branch information
mamhoff committed Nov 12, 2024
1 parent 78e5f28 commit 245816f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ changelog:
- title: Solidus Sample
labels:
- "changelog:solidus_sample"
- title: Solidus Promotions
labels:
- "changelog:solidus_promotions"
2 changes: 1 addition & 1 deletion tasks/releasing.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'bundler/gem_tasks'

SOLIDUS_GEM_NAMES = %w[core api backend sample]
SOLIDUS_GEM_NAMES = %w[core api backend sample promotions]

%w[build install].each do |task_name|
desc "Run rake #{task} for each Solidus gem"
Expand Down
6 changes: 4 additions & 2 deletions tasks/testing.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ def subproject_task(project, task, title: project, task_name: nil)
end
end

SOLIDUS_GEM_NAMES = %w[core api backend frontend sample promotions]

%w[spec db:drop db:create db:migrate db:reset].each do |task|
%w(api backend core frontend sample).each do |project|
SOLIDUS_GEM_NAMES.each do |project|
desc "Run specs for #{project}" if task == 'spec'
subproject_task(project, task)
end

desc "Run rake #{task} for each Solidus engine"
task task => %w(api backend core frontend sample).map { |p| "#{task}:#{p}" }
task task => SOLIDUS_GEM_NAMES.map { |p| "#{task}:#{p}" }
end

desc "Run backend JS specs"
Expand Down

0 comments on commit 245816f

Please sign in to comment.