From 7f77d3957d280981676f22f0a3637e541f44bfeb Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Tue, 12 Nov 2024 12:07:41 +0100 Subject: [PATCH] Fix release task Due to the top level constant in testing.rake the release task was also trying to release frontend. Using a local variable instead. --- tasks/testing.rake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tasks/testing.rake b/tasks/testing.rake index 213fab55d26..8ed89ec92c3 100644 --- a/tasks/testing.rake +++ b/tasks/testing.rake @@ -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"