Skip to content

Commit cac645d

Browse files
authored
CI: get rid of lerna, update node/TS (#670)
* CI: get rid of lerna, update node/TS * CI: update github workflow * CI: update github workflow * CI: update github workflow * CI: update github workflow * CI: update github workflow * CI: update scripts * CI: fix scripts * CI: research * CI: research * CI: research * CI: research * CI: research * CI: research * CI: fix trigger * CI: update lock * CI: research * CI: research * CI: research * CI: research * CI: research * CI: research * CI: use fork * CI: research * CI: research * CI: research * CI: link devextreme * CI: research * CI: research * CI: tmp skip tests * CI: unskip tests * CI: fix tests * cleanup * CI: try node 18
1 parent 42eed55 commit cac645d

18 files changed

+33511
-50712
lines changed

.github/workflows/tests.yml

+28-31
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
name: Tests
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- master
78
- '[12][0-9].[12]'
8-
pull_request:
9-
branches:
10-
- '**'
9+
1110
jobs:
1211
test:
1312
runs-on: ubuntu-latest
1413
timeout-minutes: 60
1514

1615
steps:
1716
- name: Get sources
18-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1918

2019
- name: Clone devextreme repo from PR author fork
2120
continue-on-error: true
@@ -25,10 +24,21 @@ jobs:
2524
- name: Clone devextreme repo
2625
run: test -d ../devextreme || git clone -b 23_1 https://github.com/devexpress/devextreme ../devextreme
2726

28-
- name: Use Node.js 15
29-
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+
- uses: actions/setup-dotnet@v3
33+
with:
34+
dotnet-version: '3.1.x'
35+
36+
- name: Restore devextreme npm cache
37+
uses: actions/cache@v3
3038
with:
31-
node-version: '15'
39+
path: node_modules
40+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
41+
restore-keys: ${{ runner.os }}-node-modules
3242

3343
- name: Install packages in devextreme repo
3444
run: |
@@ -40,36 +50,23 @@ jobs:
4050
cd ../devextreme
4151
npm run build-dist
4252
43-
- name: Use Node.js 14
44-
uses: actions/setup-node@v2
45-
with:
46-
node-version: '14'
47-
48-
- name: Install devextreme package
53+
- name: Link devextreme
4954
run: |
50-
cd ./packages/devextreme-vue
51-
npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
52-
cd ../sandbox
53-
npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
54-
cd ../vue2-strategy
55-
npm install --save-dev ../../../devextreme/artifacts/npm/devextreme
56-
cd ../../
57-
npm install --save-dev ../devextreme/artifacts/npm/devextreme
58-
59-
- name: Run npm install
60-
run: npm install --no-audit --no-fund
55+
cd ../devextreme/artifacts/npm/devextreme
56+
npm link
6157
62-
- name: Run devextreme-vue-generator tests
63-
run: npx lerna run --scope devextreme-vue-generator test
64-
65-
- name: Run bootstrap
66-
run: npm run bootstrap
58+
- name: Install npm packages and link to devextreme
59+
run: |
60+
npm link devextreme
6761
6862
- name: Run lint
6963
run: npm run lint
7064

71-
- name: Pack with Vue
72-
run: npm run pack
65+
- name: Run update integration meta
66+
run: npm run update-integration-meta
67+
68+
- name: Run build
69+
run: npm run build:packages
7370

7471
- name: Run tests with Vue
7572
run: npm run test

jest.config.base.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module.exports = {
22
roots: ['<rootDir>'],
33
transform: {
4-
'^.+\\.(j|t)sx?$': 'ts-jest',
4+
'.*': [
5+
'ts-jest',
6+
{
7+
diagnostics: false,
8+
},
9+
]
510
},
611
testURL: 'http://localhost',
712
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",

jest.tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"jsx": "react",
4+
"target": "ES2019",
5+
"emitDecoratorMetadata": false // coverage broke if true
6+
},
7+
"include": [],
8+
"exclude": ["node_modules","npm"]
9+
}

0 commit comments

Comments
 (0)