Skip to content

E2E

E2E #17

Workflow file for this run

name: E2E
on:
pull_request:
branches: [main]
workflow_dispatch:
inputs:
browsers:
description: "Browsers to run (chromium, firefox, webkit, all)"
required: false
default: chromium
schedule:
# Nightly full browser matrix at 04:00 UTC
- cron: "0 4 * * *"
concurrency:
group: e2e-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e:
name: Playwright (${{ matrix.browser }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser:
- ${{ github.event_name == 'pull_request' && 'chromium' || (inputs.browsers || 'chromium') }}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: "2.7.14"
- name: Install Playwright browsers
run: deno task test:e2e:install
- name: Run E2E
run: deno task test:e2e
env:
CI: "true"
- name: Upload Playwright report on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.browser }}
path: |
playwright-report
test-results
retention-days: 7