66 - master
77 - ' [12][0-9].[12]'
88 pull_request :
9- branches :
10- - ' **'
119
1210jobs :
1311 test :
1614
1715 steps :
1816 - name : Get sources
19- uses : actions/checkout@v2
17+ uses : actions/checkout@v3
2018
2119 - name : Clone devextreme repo from PR author fork
2220 continue-on-error : true
@@ -26,96 +24,52 @@ jobs:
2624 - name : Clone devextreme repo
2725 run : test -d ../devextreme || git clone -b 23_1 https://github.com/devexpress/devextreme ../devextreme
2826
29- - name : Use Node.js 15
30- uses : actions/setup-node@v2
27+ - name : Use Node.js 18
28+ uses : actions/setup-node@v3
29+ with :
30+ node-version : ' 18'
31+
32+ - name : Get npm cache directory
33+ id : npm-cache-dir
34+ shell : bash
35+ run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
36+
37+ - name : Restore devextreme npm cache
38+ uses : actions/cache@v3
3139 with :
32- node-version : ' 15'
40+ path : ${{ steps.npm-cache-dir.outputs.dir }}
41+ key : ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
42+ restore-keys : ${{ runner.os }}-node-modules
3343
3444 - name : Install packages in devextreme repo
35- run : |
36- cd ../devextreme
37- npm install --no-audit --no-fund
45+ working-directory : ../devextreme
46+ run : npm i --no-audit --no-fund
3847
3948 - name : Build devextreme repo
40- run : |
41- cd ../devextreme
42- npm run build-npm-devextreme
43-
44- - name : Use Node.js 14
45- uses : actions/setup-node@v2
46- with :
47- node-version : ' 14'
49+ working-directory : ../devextreme
50+ run : npm run build-npm-devextreme
4851
4952 - name : Install devextreme package
50- run : |
51- cd ./packages/devextreme-angular
52- npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
53- cd ../sandbox
54- npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
55- cd ../../
56- npm install --save-dev ../devextreme/artifacts/npm/devextreme
53+ continue-on-error : true
54+ run : npm i --save-dev ../devextreme/artifacts/npm/devextreme --workspace=devextreme-angular --workspace=devextreme-angular-sandbox
5755
5856 - name : Run npm install
59- run : npm install --no-audit --no-fund
57+ run : npm i --no-audit --no-fund
6058
6159 - name : Update metadata
62- run : |
63- npm run update-integration-meta
60+ run : npm run update-integration-meta
6461
6562 - name : Run devextreme-angular-generator tests
66- run : npx lerna run --scope devextreme-angular-generator test
63+ run : npm run test --workspace= devextreme-angular-generator
6764
6865 - name : Run lint
6966 run : npm run lint
7067
71- - name : Build with Angular 7
68+ - name : Build with Angular 12
7269 run : npm run build
7370
74- - name : Run tests with Angular 7
75- run : npx lerna run --scope devextreme-angular gulp -- run.tests
76-
77- - name : Install Angular latest
78- run : |
79- npx lerna clean --yes
80- npx lerna add @angular/animations@12 packages/devextreme-angular --dev --exact --no-bootstrap
81- npx lerna add @angular/core@12 packages/devextreme-angular --dev --exact --no-bootstrap
82- npx lerna add @angular/common@12 packages/devextreme-angular --dev --exact --no-bootstrap
83- npx lerna add @angular/compiler@12 packages/devextreme-angular --dev --exact --no-bootstrap
84- npx lerna add @angular/forms@12 packages/devextreme-angular --dev --exact --no-bootstrap
85- npx lerna add @angular/platform-browser@12 packages/devextreme-angular --dev --exact --no-bootstrap
86- npx lerna add @angular/platform-server@12 packages/devextreme-angular --dev --exact --no-bootstrap
87- npx lerna add @angular/platform-browser-dynamic@12 packages/devextreme-angular --dev --exact --no-bootstrap
88- npx lerna add @angular/compiler-cli@12 packages/devextreme-angular --dev --exact --no-bootstrap
89- npx lerna bootstrap --no-ci
90-
91- - name : Build tests with Angular latest
92- run : npx lerna run --scope devextreme-angular gulp -- build.tests
93-
94- - name : Run tests with Angular latest
95- run : npx lerna run --scope devextreme-angular gulp -- run.tests
96-
97- - name : Install Angular Next
98- if : false
99- run : |
100- npx lerna clean --yes
101- npx lerna add @angular/animations@next packages/devextreme-angular --dev --exact --no-bootstrap
102- npx lerna add @angular/core@next packages/devextreme-angular --dev --exact --no-bootstrap
103- npx lerna add @angular/common@next packages/devextreme-angular --dev --exact --no-bootstrap
104- npx lerna add @angular/compiler@next packages/devextreme-angular --dev --exact --no-bootstrap
105- npx lerna add @angular/forms@next packages/devextreme-angular --dev --exact --no-bootstrap
106- npx lerna add @angular/platform-browser@next packages/devextreme-angular --dev --exact --no-bootstrap
107- npx lerna add @angular/platform-server@next packages/devextreme-angular --dev --exact --no-bootstrap
108- npx lerna add @angular/platform-browser-dynamic@next packages/devextreme-angular --dev --exact --no-bootstrap
109- npx lerna add @angular/compiler-cli@next packages/devextreme-angular --dev --exact --no-bootstrap
110- npx lerna bootstrap --no-ci
111-
112- - name : Build tests with Angular next
113- if : false
114- run : npx lerna run --scope devextreme-angular gulp -- build.tests
115-
116- - name : Run tests with Angular Next
117- if : false
118- run : npx lerna run --scope devextreme-angular gulp -- run.tests
71+ - name : Run tests with Angular 12
72+ run : npm run test:dev --workspace=devextreme-angular
11973
12074 - name : Archive internal-tools artifacts
12175 uses : actions/upload-artifact@v3
0 commit comments