forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.43 KB
/
_test.yml
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
51
52
53
54
55
56
57
58
59
60
61
name: Tests
on:
workflow_call:
jobs:
e2e:
name: E2E Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: packages/quill
- name: Run Playwright tests
run: npm run test:e2e
working-directory: packages/quill
fuzz:
name: Fuzz Tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- run: npm run test:fuzz -w quill
unit:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit, firefox]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run test:unit -w quill || npm run test:unit -w quill || npm run test:unit -w quill
env:
BROWSER: ${{ matrix.browser }}