Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Playwright Tests

Playwright Tests #412

Workflow file for this run

name: Playwright Tests
on:
deployment_status:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-22.04
if: github.event.deployment_status.state == 'success'
container:
image: mcr.microsoft.com/playwright:v1.40.0-jammy
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run Playwright tests
run: HOME='/root' pnpm run test --reporter=html
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30