forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 16
104 lines (93 loc) · 2.91 KB
/
html-editor-checks.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Html Editor
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
DEVEXTREME_BRANCHES: '["24_1"]'
jobs:
set-up-branches:
name: devextreme branches setup
runs-on: ubuntu-latest
outputs:
branches: ${{ steps.set-matrix.outputs.branches }}
steps:
- name: Setup matrix
id: set-matrix
run: |
echo "DevExtreme branches: ${{ toJson(env.DEVEXTREME_BRANCHES) }}"
echo "branches=${{ toJson(env.DEVEXTREME_BRANCHES) }}" >> $GITHUB_OUTPUT
build-quill:
runs-on: ubuntu-latest
steps:
- name: Checkout Quill repository
uses: actions/checkout@v3
- name: Build package
uses: ./.github/actions/quill/steps/build-package
build-devextreme:
needs: [build-quill, set-up-branches]
runs-on: ubuntu-latest
timeout-minutes: 15
name: build ${{ matrix.branch }}
strategy:
fail-fast: false
matrix:
branch: ${{ fromJson(needs.set-up-branches.outputs.branches) }}
steps:
- name: Checkout Quill repository
uses: actions/checkout@v3
with:
path: quill-repo
- name: Build
uses: ./quill-repo/.github/actions/html-editor/steps/build
with:
branch: ${{ matrix.branch }}
devextreme-package-directory: ${{ 'devextreme-repo/packages/devextreme' }}
qunit:
needs: [build-devextreme, set-up-branches]
runs-on: ubuntu-latest
timeout-minutes: 15
name: qunit ${{ matrix.branch }}
strategy:
fail-fast: false
matrix:
branch: ${{ fromJson(needs.set-up-branches.outputs.branches) }}
test-suite: [ui.htmlEditor]
steps:
- name: Checkout Quill repository
uses: actions/checkout@v3
with:
path: quill-repo
- name: QUnit tests
uses: ./quill-repo/.github/actions/html-editor/steps/qunit-tests
with:
branch: ${{ matrix.branch }}
devextreme-package-directory: ${{ 'devextreme-repo/packages/devextreme' }}
test-suite: ${{ matrix.test-suite }}
testcafe:
needs: [build-devextreme, set-up-branches]
runs-on: ubuntu-latest
timeout-minutes: 15
name: testcafe ${{ matrix.branch }}
strategy:
fail-fast: false
matrix:
branch: ${{ fromJson(needs.set-up-branches.outputs.branches) }}
test-suite: [
{ componentFolder: 'htmlEditor', quarantineMode: false },
]
steps:
- name: Checkout Quill repository
uses: actions/checkout@v3
with:
path: quill-repo
- name: Testcafe tests
uses: ./quill-repo/.github/actions/html-editor/steps/testcafe-tests
with:
branch: ${{ matrix.branch }}
devextreme-package-directory: ${{ 'devextreme-repo/packages/devextreme' }}
component-directory: ${{ matrix.test-suite.componentFolder }}
quarantine-mode: ${{ matrix.test-suite.quarantineMode }}