From d87286b13f56047c5b7cea0a16aab39a0c33470a Mon Sep 17 00:00:00 2001 From: Juri Date: Tue, 17 Sep 2024 18:58:48 +0200 Subject: [PATCH] enable agents --- .github/workflows/verify.yml | 11 +++++++---- e2e/web/playwright.config.ts | 3 +-- package.json | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index ddc5581..b359953 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -21,8 +21,11 @@ jobs: - uses: pnpm/action-setup@v4 name: Install pnpm with: - version: 9 + version: 9.9.0 # temporary fix for Nx Cloud PNPM version detection run_install: false + + - run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build" + - name: Install dependencies run: pnpm install - name: Install Playwright Browsers @@ -31,9 +34,9 @@ jobs: run: | pnpm format:check pnpm lint - pnpm exec nx run-many -t test build e2e - # - name: Run Playwright tests - # run: pnpm --filter "@tasker/e2e-web" e2e + pnpm exec nx run-many -t test build + - name: Run Playwright tests + run: pnpm --filter "@tasker/e2e-web" e2e - uses: actions/upload-artifact@v4 if: always() with: diff --git a/e2e/web/playwright.config.ts b/e2e/web/playwright.config.ts index ccfbcdc..85ef727 100644 --- a/e2e/web/playwright.config.ts +++ b/e2e/web/playwright.config.ts @@ -33,8 +33,7 @@ export default defineConfig({ webServer: { timeout: 30_000, - // command: 'pnpm --filter "@tasker/web" start', - command: 'pnpm nx start @tasker/web', + command: 'pnpm --filter "@tasker/web" start', url: 'http://localhost:3000', reuseExistingServer: true, }, diff --git a/package.json b/package.json index b7910f0..72200cd 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,6 @@ "@playwright/test": "^1.44.0", "nx": "19.7.3", "@nx/workspace": "19.7.3" - } + }, + "packageManager": "pnpm@9.9.0" }