From cf4d9763d01c00f91f90563bd33ee33bd3f99ee5 Mon Sep 17 00:00:00 2001 From: sidmohanty11 Date: Sat, 17 Feb 2024 20:10:16 +0530 Subject: [PATCH] refactor action --- .github/workflows/playwright.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 114b19f04..c1ca1a3bc 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -17,10 +17,13 @@ jobs: with: node-version: 16.19.0 - - name: Install all dependencies - run: | - npm install -g yarn - yarn + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.yarn + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Install and build the project run: | @@ -34,7 +37,7 @@ jobs: run: npx playwright install --with-deps - name: Run Playwright tests - run: yarn test + run: npx playwright test - name: Upload Playwright report uses: actions/upload-artifact@v3