-
Notifications
You must be signed in to change notification settings - Fork 67
82 lines (67 loc) · 2.09 KB
/
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
name: Tests
on:
push:
branches:
- master
- '[12][0-9].[12]'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Get sources
uses: actions/checkout@v3
- name: Clone devextreme repo from PR author fork
continue-on-error: true
if: github.event_name == 'pull_request'
run: git clone -b ${{github.event.pull_request.head.ref}} https://github.com/${{github.event.pull_request.user.login}}/devextreme ../devextreme
- name: Clone devextreme repo
run: test -d ../devextreme || git clone -b 22_1 https://github.com/devexpress/devextreme ../devextreme
- name: Use Node.js 15
uses: actions/setup-node@v3
with:
node-version: '15'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Install packages in devextreme repo
run: |
cd ../devextreme
npm install --no-audit --no-fund
- name: Build devextreme repo
run: |
cd ../devextreme
npm run build-dist
- name: Use Node.js 14
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install devextreme package
run: |
cd ./packages/devextreme-react
npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
cd ../sandbox
npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
cd ../../
npm install --save-dev ../devextreme/artifacts/npm/devextreme
- name: Run npm install
run: npm install --no-audit --no-fund
- name: Run devextreme-react-generator tests
run: npx lerna run --scope devextreme-react-generator test
- name: Run bootstrap
run: npm run bootstrap
- name: Run lint
run: npm run lint
- name: Pack with React
run: npm run pack
- name: Run tests with React
run: npm run test
- name: Archive internal-tools artifacts
uses: actions/upload-artifact@v3
with:
name: internal-tools-artifacts
path: artifacts/internal-tools/
retention-days: 7