chore(repo): skip daemon cleanup on grouped e2e tests (#8314)
This commit is contained in:
parent
7fd7849729
commit
a44abd39bd
1
.github/workflows/e2e-matrix.yml
vendored
1
.github/workflows/e2e-matrix.yml
vendored
@ -171,6 +171,7 @@ jobs:
|
|||||||
YARN_REGISTRY: http://localhost:4872
|
YARN_REGISTRY: http://localhost:4872
|
||||||
NX_VERBOSE_LOGGING: ${{ 'true' }}
|
NX_VERBOSE_LOGGING: ${{ 'true' }}
|
||||||
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
|
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
|
||||||
|
NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }}
|
||||||
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
|
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
|
||||||
|
|
||||||
- name: Setup tmate session
|
- name: Setup tmate session
|
||||||
|
|||||||
1
.github/workflows/e2e-windows.yml
vendored
1
.github/workflows/e2e-windows.yml
vendored
@ -87,6 +87,7 @@ jobs:
|
|||||||
YARN_REGISTRY: http://localhost:4872
|
YARN_REGISTRY: http://localhost:4872
|
||||||
NX_VERBOSE_LOGGING: ${{ 'true' }}
|
NX_VERBOSE_LOGGING: ${{ 'true' }}
|
||||||
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
|
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }}
|
||||||
|
NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }}
|
||||||
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
|
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }}
|
||||||
|
|
||||||
- name: Setup tmate session
|
- name: Setup tmate session
|
||||||
|
|||||||
@ -291,7 +291,9 @@ export async function killPorts(port?: number): Promise<boolean> {
|
|||||||
export async function cleanupProject() {
|
export async function cleanupProject() {
|
||||||
if (isCI) {
|
if (isCI) {
|
||||||
// Stopping the daemon is not required for tests to pass, but it cleans up background processes
|
// Stopping the daemon is not required for tests to pass, but it cleans up background processes
|
||||||
runCLI('reset');
|
if (process.env.NX_E2E_SKIP_DAEMON_CLEANUP !== 'true') {
|
||||||
|
runCLI('reset');
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
removeSync(tmpProjPath());
|
removeSync(tmpProjPath());
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user