From 5f92e52b0668d36105e500831c7371ca8bca6237 Mon Sep 17 00:00:00 2001 From: AliaksandrHv <90173506+AliaksandrHv@users.noreply.github.com> Date: Sun, 1 Mar 2026 23:14:59 -0800 Subject: [PATCH] Update playwright.yml --- .github/workflows/playwright.yml | 45 ++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 6435081582..97db2deee5 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,27 +1,38 @@ name: Playwright Tests + on: push: branches: [ main ] pull_request: branches: [ main ] + jobs: test: - timeout-minutes: 60 runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Install dependencies - run: npm ci - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests - run: npx playwright test - - uses: actions/upload-artifact@v4 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Install Playwright browsers + run: npx playwright install --with-deps + + - name: Run Playwright tests + run: npx playwright test + + - name: Upload Playwright artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: playwright-artifacts + path: | + playwright-report/ + test-results/