Skip to content

Commit

Permalink
Fix release task
Browse files Browse the repository at this point in the history
Due to the top level constant in testing.rake the release
task was also trying to release frontend. Using a local
variable instead.
  • Loading branch information
tvdeyen committed Nov 12, 2024
1 parent dd4dbc3 commit 7f77d39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tasks/testing.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ 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|
SOLIDUS_GEM_NAMES.each do |project|
solidus_gem_names = %w[core api backend sample promotions]
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 => SOLIDUS_GEM_NAMES.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 7f77d39

Please sign in to comment.