chore(repo): switch of invalid nightly parallel runs (#7899)
This commit is contained in:
parent
2d9c0ff4d9
commit
50eb5a91a2
3
.github/workflows/e2e-matrix.yml
vendored
3
.github/workflows/e2e-matrix.yml
vendored
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user