E2E #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |