This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Merge pull request #1823 from w3bdesign/develop #3142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: actions/setup-node@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
node-version: 18 | |
cache: "pnpm" # This will enable caching for pnpm | |
version: 8 | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Verify pnpm installation | |
run: pnpm --version | |
- name: Install dependencies | |
run: npx pnpm install --no-frozen-lockfile | |
- name: Install Playwright Browsers | |
run: npx pnpm exec playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx pnpm exec playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 14 |