Skip to content

Commit 2124f9e

Browse files
authored
Revert "Store generated source code in the repo (#697)" (#752)
1 parent b1934f5 commit 2124f9e

File tree

173 files changed

+169
-83256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+169
-83256
lines changed

.github/workflows/tests.yml

+38-22
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ jobs:
1616
- name: Get sources
1717
uses: actions/checkout@v3
1818

19+
- name: Clone devextreme repo from PR author fork
20+
continue-on-error: true
21+
if: github.event_name == 'pull_request'
22+
run: git clone -b ${{github.event.pull_request.head.ref}} https://github.com/${{github.event.pull_request.user.login}}/devextreme ../devextreme
23+
24+
- name: Clone devextreme repo
25+
run: test -d ../devextreme || git clone -b 23_1 https://github.com/devexpress/devextreme ../devextreme
26+
1927
- name: Use Node.js 18
2028
uses: actions/setup-node@v3
2129
with:
@@ -25,35 +33,43 @@ jobs:
2533
with:
2634
dotnet-version: '3.1.x'
2735

28-
- name: Install npm packages
29-
run: npm i
36+
- name: Restore devextreme npm cache
37+
uses: actions/cache@v3
38+
with:
39+
path: node_modules
40+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
41+
restore-keys: ${{ runner.os }}-node-modules
3042

31-
- name: Run lint
32-
run: npm run lint
43+
- name: Install packages in devextreme repo
44+
run: |
45+
cd ../devextreme
46+
npm install --no-audit --no-fund
3347
34-
- name: Restore devextreme
35-
run: npm run restore-devextreme
48+
- name: Build devextreme repo
49+
run: |
50+
cd ../devextreme
51+
npm run build-dist
3652
3753
- name: Link devextreme
38-
run: npm run link-devextreme
54+
run: |
55+
cd ../devextreme/artifacts/npm/devextreme
56+
npm link
3957
40-
- name: Generate metadata
41-
run: npm run generate-metadata
58+
- name: Install npm packages and link to devextreme
59+
run: |
60+
npm link devextreme --legacy-peer-deps
4261
43-
- name: Build packages
44-
run: npm run build:packages
62+
- name: Run lint
63+
run: npm run lint
4564

46-
- name: Check generated code
47-
shell: bash
48-
run: |
49-
git add . -N
50-
changes=$(git diff --name-status HEAD -- packages/devextreme-vue/src packages/vue2-strategy/src)
51-
if [ -n "$changes" ]; then
52-
echo "Generated code is outdated. The following files have uncommitted changes:"
53-
echo "$changes";
54-
echo "To update generated code, generate metadata, build packages and commit changes."
55-
exit 1
56-
fi
65+
- name: Run update integration meta
66+
run: npm run update-integration-meta
67+
68+
- name: Build generator
69+
run: npm run build -w devextreme-vue-generator
70+
71+
- name: Run build
72+
run: npm run build:packages
5773

5874
- name: Run tests with Vue
5975
run: npm run test

.github/workflows/update-generated-code.yml

-86
This file was deleted.

.gitmodules

-4
This file was deleted.

devextreme

-1
This file was deleted.

0 commit comments

Comments
 (0)