From c3c942484346e23f9575646a3d75037429edb5a8 Mon Sep 17 00:00:00 2001 From: samshara Date: Wed, 27 Nov 2024 14:31:39 +0545 Subject: [PATCH] feat: use pnpm instead of yarn to run playwright --- .github/workflows/playwright.yml | 9 ++++++--- pnpm-workspace.yaml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index e5dcda0da..ae30b3c5a 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -30,7 +30,10 @@ jobs: working-directory: packages/e2e-tests steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + - name: Install Node.js + uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' @@ -54,9 +57,9 @@ jobs: with: node-version: lts/* - name: Install Playwright Browsers - run: pnpmx playwright install --with-deps + run: pnpm dlx playwright install --with-deps - name: Run Playwright Tests - run: pnpmx playwright test + run: pnpm exec test - uses: actions/upload-artifact@v4 id: playwright-report-artifact if: ${{ !cancelled() }} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index aff49d4a3..6ee00cb53 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,4 +2,4 @@ packages: - "app" - "packages/ui" - "packages/go-ui-storybook" - - "e23-tests" + - "e2e-tests"