Update to 23.1.12 (#759) #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- '[12][0-9].[12]' | |
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 23_1 https://github.com/devexpress/devextreme ../devextreme | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '3.1.x' | |
- 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: 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: Link devextreme | |
run: | | |
cd ../devextreme/artifacts/npm/devextreme | |
npm link | |
- name: Install npm packages and link to devextreme | |
run: | | |
npm link devextreme --legacy-peer-deps | |
- name: Run lint | |
run: npm run lint | |
- 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 | |
- name: Check packing | |
run: npm run pack | |
- name: Archive internal-tools artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: internal-tools-artifacts | |
path: artifacts/internal-tools/ | |
retention-days: 7 |