From 245816f6696ced5471270a6b0b7fac795c08c908 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Tue, 12 Nov 2024 11:24:55 +0100 Subject: [PATCH] Include solidus_promotions in release tasks 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. --- .github/release.yml | 3 +++ tasks/releasing.rake | 2 +- tasks/testing.rake | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/release.yml b/.github/release.yml index f71fce019de..4e665d246cf 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -24,3 +24,6 @@ changelog: - title: Solidus Sample labels: - "changelog:solidus_sample" + - title: Solidus Promotions + labels: + - "changelog:solidus_promotions" diff --git a/tasks/releasing.rake b/tasks/releasing.rake index 4142046b470..4336ea0f3ce 100644 --- a/tasks/releasing.rake +++ b/tasks/releasing.rake @@ -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" diff --git a/tasks/testing.rake b/tasks/testing.rake index 7dee5cbb90a..213fab55d26 100644 --- a/tasks/testing.rake +++ b/tasks/testing.rake @@ -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"