Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: e2e test by adding isCI
Browse files Browse the repository at this point in the history
0.618 committed Aug 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6fc0979 commit 71b204c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/amplify-cli/src/init-steps/preInitSetup.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ import { $TSContext, AmplifyError, getPackageManager, LocalEnvInfo, pathManager
import { execSync } from 'child_process';
import * as fs from 'fs-extra';
import * as url from 'url';
import { isCI } from 'ci-info';
import { generateLocalEnvInfoFile } from './s9-onSuccess';
import { printer, prompter } from '@aws-amplify/amplify-prompts';
import { isNewProject } from './s0-analyzeProject';
@@ -11,7 +12,9 @@ export const getPreInitSetup = (recommendGen2: boolean) => {
return preInitSetup;
} else {
return async (context) => {
await gen2Recommendation(context);
if (!isCI) {
await gen2Recommendation(context);
}
await preInitSetup(context);
};
}

0 comments on commit 71b204c

Please sign in to comment.