-
Notifications
You must be signed in to change notification settings - Fork 382
108 lines (88 loc) · 2.16 KB
/
ci_tests.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
105
106
107
108
name: Tests
on:
push:
branches-ignore:
- 'gh-pages'
pull_request:
branches-ignore:
- 'gh-pages'
jobs:
build:
runs-on: ubuntu-latest
name: Build, Lint & Jest Test
steps:
- name: Get sources
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Prepare yarn
run: |
sudo npm i -g [email protected] --force
yarn --no-progress
- name: Build
run: |
yarn build
chmod -R 777 .
- name: Linter & Jest Tests
run: |
yarn lint
yarn test:ci
- name: Zip artifacts
run: 7z a -tzip -mx3 -mmt2 artifacts.zip packages
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: devextreme-reactive-artifacts
path: artifacts.zip
retention-days: 1
test_cafe:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
component: ['grid', 'chart', 'scheduler']
name: Test Cafe tests ${{ matrix.component }}
steps:
- name: Get sources
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Prepare yarn
run: |
sudo npm i -g [email protected] --force
yarn --no-progress
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: devextreme-reactive-artifacts
- name: Unpack artifacts
run: 7z x -y artifacts.zip
- name: TestCafe test
run: yarn testcafe:ci:${{ matrix.component }}
site:
runs-on: ubuntu-latest
needs: build
name: Site
steps:
- name: Get sources
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Prepare yarn
run: |
sudo npm i -g [email protected] --force
yarn --no-progress
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: devextreme-reactive-artifacts
- name: Unpack artifacts
run: 7z x -y artifacts.zip
- name: Site
run: yarn build:site:docs