Skip to content

E2E (Playwright)

E2E (Playwright) #319

Workflow file for this run

name: E2E (Playwright)
on:
workflow_dispatch:
schedule:
# Nightly at 04:00 UTC
- cron: '0 4 * * *'
pull_request:
types: [opened, synchronize, reopened, labeled]
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e:
name: End-to-End (UI + CLI)
runs-on: ubuntu-latest
if: >-
${{
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule' ||
(
github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'run-e2e')
)
}}
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright (chromium)
run: npx playwright install --with-deps chromium
- name: Run E2E suite
run: npx vitest run tests/e2e/**/*