diff --git a/.github/workflows/e2e-matrix.yml b/.github/workflows/e2e-matrix.yml index ce166faf0e..0c6f8333ca 100644 --- a/.github/workflows/e2e-matrix.yml +++ b/.github/workflows/e2e-matrix.yml @@ -171,6 +171,7 @@ jobs: YARN_REGISTRY: http://localhost:4872 NX_VERBOSE_LOGGING: ${{ 'true' }} NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} + NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }} NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} - name: Setup tmate session diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml index 0b6a88bfc0..168a64e4a4 100644 --- a/.github/workflows/e2e-windows.yml +++ b/.github/workflows/e2e-windows.yml @@ -87,6 +87,7 @@ jobs: YARN_REGISTRY: http://localhost:4872 NX_VERBOSE_LOGGING: ${{ 'true' }} NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} + NX_E2E_SKIP_DAEMON_CLEANUP: ${{ 'true' }} NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} - name: Setup tmate session diff --git a/e2e/utils/index.ts b/e2e/utils/index.ts index 952e697b0c..80c21036a7 100644 --- a/e2e/utils/index.ts +++ b/e2e/utils/index.ts @@ -291,7 +291,9 @@ export async function killPorts(port?: number): Promise { export async function cleanupProject() { if (isCI) { // 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 { removeSync(tmpProjPath()); } catch (e) {}