diff --git a/packages/eas-cli/src/commands/submit.ts b/packages/eas-cli/src/commands/submit.ts index 3197afaa27..426fa7555b 100644 --- a/packages/eas-cli/src/commands/submit.ts +++ b/packages/eas-cli/src/commands/submit.ts @@ -33,6 +33,7 @@ interface RawCommandFlags { verbose: boolean; wait: boolean; 'non-interactive': boolean; + 'what-to-test'?: string; 'verbose-fastlane': boolean; } @@ -44,6 +45,7 @@ interface CommandFlags { wait: boolean; nonInteractive: boolean; isVerboseFastlaneEnabled: boolean; + whatToTest?: string; } export default class Submit extends EasCommand { @@ -93,6 +95,9 @@ export default class Submit extends EasCommand { default: false, description: 'Run command in non-interactive mode', }), + 'what-to-test': Flags.string({ + description: 'What to test', + }), }; static override contextDefinition = { @@ -138,6 +143,7 @@ export default class Submit extends EasCommand { profile: submissionProfile.profile, archiveFlags: flagsWithPlatform.archiveFlags, nonInteractive: flagsWithPlatform.nonInteractive, + whatToTest: flagsWithPlatform.whatToTest, isVerboseFastlaneEnabled: flagsWithPlatform.isVerboseFastlaneEnabled, actor, graphqlClient, @@ -183,6 +189,7 @@ export default class Submit extends EasCommand { profile, 'non-interactive': nonInteractive, 'verbose-fastlane': isVerboseFastlaneEnabled, + 'what-to-test': whatToTest, ...archiveFlags } = flags; @@ -204,6 +211,7 @@ export default class Submit extends EasCommand { profile, nonInteractive, isVerboseFastlaneEnabled, + whatToTest, }; } diff --git a/packages/eas-cli/src/submit/context.ts b/packages/eas-cli/src/submit/context.ts index 79ce4dee44..682db4c05a 100644 --- a/packages/eas-cli/src/submit/context.ts +++ b/packages/eas-cli/src/submit/context.ts @@ -33,6 +33,7 @@ export interface SubmissionContext { vcsClient: Client; applicationIdentifierOverride?: string; specifiedProfile?: string; + whatToTest?: string; } export interface SubmitArchiveFlags { @@ -59,6 +60,7 @@ export async function createSubmissionContextAsync(params: { projectId: string; vcsClient: Client; specifiedProfile?: string; + whatToTest?: string; }): Promise> { const { applicationIdentifier, diff --git a/packages/eas-cli/src/submit/ios/IosSubmitter.ts b/packages/eas-cli/src/submit/ios/IosSubmitter.ts index 3dfded6dba..a859354ea7 100644 --- a/packages/eas-cli/src/submit/ios/IosSubmitter.ts +++ b/packages/eas-cli/src/submit/ios/IosSubmitter.ts @@ -130,6 +130,7 @@ export default class IosSubmitter extends BaseSubmitter< ascAppIdentifier, appleIdUsername, isVerboseFastlaneEnabled, + whatToTest: this.ctx.whatToTest, ...(appSpecificPassword ? this.formatAppSpecificPassword(appSpecificPassword) : null), ...(ascApiKeyResult?.result ? this.formatAscApiKeyResult(ascApiKeyResult.result) : null), };