Skip to content

Commit

Permalink
Revert "Store generated source code in the repo (#697)" (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslavr committed Oct 6, 2023
1 parent b1934f5 commit 2124f9e
Show file tree
Hide file tree
Showing 173 changed files with 169 additions and 83,256 deletions.
60 changes: 38 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
- 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 23_1 https://github.com/devexpress/devextreme ../devextreme

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
Expand All @@ -25,35 +33,43 @@ jobs:
with:
dotnet-version: '3.1.x'

- name: Install npm packages
run: npm i
- name: Restore devextreme npm cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-modules

- name: Run lint
run: npm run lint
- name: Install packages in devextreme repo
run: |
cd ../devextreme
npm install --no-audit --no-fund
- name: Restore devextreme
run: npm run restore-devextreme
- name: Build devextreme repo
run: |
cd ../devextreme
npm run build-dist
- name: Link devextreme
run: npm run link-devextreme
run: |
cd ../devextreme/artifacts/npm/devextreme
npm link
- name: Generate metadata
run: npm run generate-metadata
- name: Install npm packages and link to devextreme
run: |
npm link devextreme --legacy-peer-deps
- name: Build packages
run: npm run build:packages
- name: Run lint
run: npm run lint

- name: Check generated code
shell: bash
run: |
git add . -N
changes=$(git diff --name-status HEAD -- packages/devextreme-vue/src packages/vue2-strategy/src)
if [ -n "$changes" ]; then
echo "Generated code is outdated. The following files have uncommitted changes:"
echo "$changes";
echo "To update generated code, generate metadata, build packages and commit changes."
exit 1
fi
- name: Run update integration meta
run: npm run update-integration-meta

- name: Build generator
run: npm run build -w devextreme-vue-generator

- name: Run build
run: npm run build:packages

- name: Run tests with Vue
run: npm run test
Expand Down
86 changes: 0 additions & 86 deletions .github/workflows/update-generated-code.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion devextreme
Submodule devextreme deleted from b509cd
Loading

0 comments on commit 2124f9e

Please sign in to comment.