forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.58 KB
/
Copy pathmuya-e2e.yml
File metadata and controls
50 lines (43 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Muya E2E
# Runs the muya Playwright suite (packages/muya/e2e/) against the
# packages/muya/e2e/host/ SUT page. Phase 1: Chromium only — firefox
# and webkit are wired in playwright.config.ts but their bundled
# binaries add ~5 min to CI install and a couple of specs need engine-
# independent rewrites (triple-click selection, #all-replace) tracked
# in packages/muya/e2e/BACKLOG.md Phase 3. Add them back to the matrix
# below once those are landed.
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/muya/src/**'
- 'packages/muya/e2e/**'
- 'packages/muya/examples/**'
- 'packages/muya/package.json'
- 'pnpm-lock.yaml'
- '.github/workflows/muya-e2e.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
project: [chromium]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Install Playwright browser (${{ matrix.project }})
run: pnpm -C packages/muya/e2e exec playwright install --with-deps ${{ matrix.project }}
- name: Run Playwright (${{ matrix.project }})
run: pnpm -C packages/muya/e2e exec playwright test --project=${{ matrix.project }}
- name: Upload report on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: muya-e2e-report-${{ matrix.project }}
path: packages/muya/e2e/playwright-report/
retention-days: 7