From 7eeab1c016e9c447fd26d1095cf71a54a3138521 Mon Sep 17 00:00:00 2001 From: "Scott Wittrock (Customer.io)" <153670820+scotttwittrockcio@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:52:06 -0500 Subject: [PATCH] chore: update Fastfile to publish to new distribution groups (#165) --- apps/fastlane/helpers/build_helper.rb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/fastlane/helpers/build_helper.rb b/apps/fastlane/helpers/build_helper.rb index 8c4d4d8..ef5bf58 100644 --- a/apps/fastlane/helpers/build_helper.rb +++ b/apps/fastlane/helpers/build_helper.rb @@ -115,19 +115,22 @@ build_notes # return value end -lane :get_build_test_groups do - test_groups = ['all-builds'] # send all builds to group 'all-builds'. Therefore, set it here and we will not remove it. +lane :get_build_test_groups do + test_groups = ['all-builds'] # send all builds to group 'all-builds'. Therefore, set it here and we will not remove it. + test_groups.append("feature-branch") # Feature branch will be used when a PR is merged into a feature branch. We will need to add a check for this. github = GitHub.new() - - # To avoid giving potentially unstable builds of our sample apps to certain members of the organization, we only send builds to "stable" group uncertain certain situations. - # If a commit is merged into main, it's considered stable because we deploy to production on merges to main. + + # To avoid giving potentially unstable builds of our sample apps to certain members of the organization, we only send builds to "stable" group uncertain certain situations. + # If a commit is merged into main, it's considered stable because we deploy to production on merges to main. if github.is_commit_pushed && github.push_branch == "main" - test_groups.append("stable-builds") + test_groups.append("stable-builds") + test_groups.append("next") # Next group will depricate the 'stable` builds group'. + test_groups.append("public") # Temp send to public group until we actually build from the deployed SDK. end test_groups = test_groups.join(", ") UI.important("Test group names that will be added to this build: #{test_groups}") - test_groups # return value -end + test_groups # return value +end