Skip to content

Playwright Tests

Playwright Tests #224

name: Playwright Tests
on:
deployment_status:
jobs:
test:
timeout-minutes: 20
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright Browsers
run: yarn web playwright install --with-deps
- name: Run Playwright Tests
shell: bash
env:
STAGE: ${{ github.ref_name }}
BASE_URL: ${{ github.event.deployment_status.target_url }}
run: CI=true TEST_URI=$BASE_URL yarn web playwright test --trace on
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: web/test-results/
retention-days: 30