Skip to content

Commit

Permalink
[ENG-11420] Add --what-to-test for ios submit
Browse files Browse the repository at this point in the history
  • Loading branch information
khamilowicz committed Apr 2, 2024
1 parent 26ba071 commit 188d767
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/eas-cli/src/commands/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ interface RawCommandFlags {
verbose: boolean;
wait: boolean;
'non-interactive': boolean;
'what-to-test'?: string;
}

interface CommandFlags {
Expand All @@ -42,6 +43,7 @@ interface CommandFlags {
verbose: boolean;
wait: boolean;
nonInteractive: boolean;
whatToTest?: string;
}

export default class Submit extends EasCommand {
Expand Down Expand Up @@ -87,6 +89,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 = {
Expand Down Expand Up @@ -132,6 +137,7 @@ export default class Submit extends EasCommand {
profile: submissionProfile.profile,
archiveFlags: flagsWithPlatform.archiveFlags,
nonInteractive: flagsWithPlatform.nonInteractive,
whatToTest: flagsWithPlatform.whatToTest,
actor,
graphqlClient,
analytics,
Expand Down Expand Up @@ -175,6 +181,7 @@ export default class Submit extends EasCommand {
wait,
profile,
'non-interactive': nonInteractive,
'what-to-test': whatToTest,
...archiveFlags
} = flags;

Expand All @@ -195,6 +202,7 @@ export default class Submit extends EasCommand {
wait,
profile,
nonInteractive,
whatToTest,
};
}

Expand Down
2 changes: 2 additions & 0 deletions packages/eas-cli/src/submit/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface SubmissionContext<T extends Platform> {
vcsClient: Client;
applicationIdentifierOverride?: string;
specifiedProfile?: string;
whatToTest?: string;
}

export interface SubmitArchiveFlags {
Expand All @@ -57,6 +58,7 @@ export async function createSubmissionContextAsync<T extends Platform>(params: {
projectId: string;
vcsClient: Client;
specifiedProfile?: string;
whatToTest?: string;
}): Promise<SubmissionContext<T>> {
const {
applicationIdentifier,
Expand Down
1 change: 1 addition & 0 deletions packages/eas-cli/src/submit/ios/IosSubmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default class IosSubmitter extends BaseSubmitter<
return {
ascAppIdentifier,
appleIdUsername,
whatToTest: this.ctx.whatToTest,
...(appSpecificPassword ? this.formatAppSpecificPassword(appSpecificPassword) : null),
...(ascApiKeyResult?.result ? this.formatAscApiKeyResult(ascApiKeyResult.result) : null),
};
Expand Down

0 comments on commit 188d767

Please sign in to comment.