From 7622f8b2dbfe7b5600d5c126cc175666a640ac60 Mon Sep 17 00:00:00 2001 From: "Marian.Irudayanathan" Date: Wed, 7 Feb 2024 08:36:23 +0000 Subject: [PATCH] DTSPB-2849 - Update playwright.yml file --- .github/workflows/playwright.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index fc61546e88..2ab3f8b4ee 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -4,6 +4,9 @@ on: branches: [ main, master ] pull_request: branches: [ main, master ] +env: + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 # Skip downloading during yarn install + PLAYWRIGHT_BROWSERS_PATH: 0 # Places binaries to node_modules/@playwright/test jobs: test: timeout-minutes: 60 @@ -14,9 +17,12 @@ jobs: with: node-version: 18 - name: Install dependencies - run: npm install -g yarn && yarn - - name: Install Playwright Browsers - run: yarn playwright install --with-deps + run: | + npx playwright install-deps + - name: Setup + run: | + yarn install + npx playwright install - name: Run Playwright tests run: yarn playwright test - uses: actions/upload-artifact@v3