2023-12-18 14:55:52 +00:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2023 Google Inc.
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2023-12-04 13:55:45 +00:00
|
|
|
import {execSync} from 'child_process';
|
|
|
|
|
2023-12-18 14:55:52 +00:00
|
|
|
import {AngularProjectMulti, AngularProjectSingle} from './projects.mjs';
|
2023-12-04 13:55:45 +00:00
|
|
|
|
|
|
|
if (process.env.CI) {
|
2023-12-18 14:55:52 +00:00
|
|
|
// Need to install in CI
|
2023-12-04 13:55:45 +00:00
|
|
|
execSync('npm install -g @angular/cli@latest');
|
|
|
|
execSync('npm install -g @angular-devkit/schematics-cli');
|
|
|
|
}
|
|
|
|
|
2023-12-18 14:55:52 +00:00
|
|
|
const single = new AngularProjectSingle();
|
|
|
|
const multi = new AngularProjectMulti();
|
2023-12-04 13:55:45 +00:00
|
|
|
|
2023-12-18 14:55:52 +00:00
|
|
|
await Promise.all([single.create(), multi.create()]);
|
|
|
|
await Promise.all([single.runSmoke(), multi.runSmoke()]);
|