chore(repo): switch of invalid nightly parallel runs (#7899)

This commit is contained in:
Miroslav Jonaš 2021-11-26 03:21:57 -06:00 committed by GitHub
parent 2d9c0ff4d9
commit 50eb5a91a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -147,7 +147,7 @@ jobs:
xcrun simctl shutdown all && xcrun simctl erase all
- name: Run e2e tests
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.packages) }}"
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.packages) }}" --max-parallel=1
env:
GIT_AUTHOR_EMAIL: test@test.com
GIT_AUTHOR_NAME: Test
@ -160,6 +160,7 @@ jobs:
npm_config_registry: http://localhost:4872
YARN_REGISTRY: http://localhost:4872
VERBOSE_OUTPUT: ${{ 'true' }}
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
- name: Setup tmate session

View File

@ -1,6 +1,6 @@
import { execSync } from 'child_process';
import { readFileSync, writeFileSync, remove } from 'fs-extra';
import { readdirSync } from 'fs';
import { existsSync, readdirSync } from 'fs';
import {
prettierVersion,
typescriptVersion,
@ -11,14 +11,15 @@ process.env.npm_config_registry = `http://localhost:4872`;
process.env.YARN_REGISTRY = process.env.npm_config_registry;
async function buildPackagePublishAndCleanPorts() {
if (!process.env.SKIP_PUBLISH) {
if (!process.env.NX_E2E_SKIP_BUILD_CLEANUP) {
await Promise.all([
remove('./build'),
remove('./tmp/nx/proj-backup'),
remove('./tmp/angular/proj-backup'),
remove('./tmp/local-registry'),
]);
}
if (!process.env.NX_E2E_SKIP_BUILD_CLEANUP || !existsSync('./build')) {
build(process.env.PUBLISHED_VERSION);
try {
await updateVersionsAndPublishPackages();