Skip to content

Playwright Tests

Playwright Tests #18

Workflow file for this run

name: Playwright Tests
on:
deployment_status:
jobs:
run-e2es:
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- run: pnpm playwright install chromium
- name: Test e2e deployed
run: pnpm test:e2e
working-directory: examples/demo
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}
NODE_ENV: production