Skip to content

Commit

Permalink
refactor action
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmohanty11 committed Feb 17, 2024
1 parent 14129f4 commit cf4d976
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit cf4d976

Please sign in to comment.