fix package lock #3709
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches-ignore: | |
| - dev | |
| pull_request: | |
| branches-ignore: | |
| - dev | |
| jobs: | |
| test-meta: | |
| name: Test metadata | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get sources | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Restore npm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Run npm ci for metadata | |
| run: npm ci | |
| working-directory: packages/metadata | |
| - name: Test Metadata | |
| run: npm run test | |
| working-directory: packages/metadata | |
| testcafe: | |
| name: ${{ matrix.ARGS.project }} - ${{ matrix.ARGS.page }} - ${{ matrix.theme.type }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| theme: [ | |
| { fullName: 'material.blue.light.compact', type: 'material', name: 'material.light' }, | |
| ] | |
| ARGS: [ | |
| { project: 'angular', page: 'crm-contact-details' }, | |
| { project: 'angular', page: 'crm-contact-list' }, | |
| # { project: 'angular', page: 'planning-task-details' }, No selector for Toolbar item on mobile device(bug) | |
| { project: 'angular', page: 'planning-task-list' }, | |
| { project: 'angular', page: 'planning-scheduler' }, | |
| { project: 'angular', page: 'analytics-dashboard' }, | |
| { project: 'angular', page: 'analytics-sales-analysis' }, | |
| { project: 'angular', page: 'analytics-geography' }, | |
| { project: 'angular', page: 'user-profile' }, | |
| { project: 'angular', page: 'auth-pages' }, | |
| { project: 'react', page: 'crm-contact-details' }, | |
| { project: 'react', page: 'crm-contact-list' }, | |
| # { project: 'react', page: 'planning-task-details' }, # Title width is different (screen width 400). Menu stays opened | |
| { project: 'react', page: 'planning-task-list' }, | |
| { project: 'react', page: 'planning-scheduler' }, | |
| { project: 'react', page: 'analytics-dashboard' }, | |
| { project: 'react', page: 'auth-pages' }, | |
| # { project: 'react', page: 'analytics-geography' }, # Menu contents disappear after item click (screen width 400) | |
| # { project: 'vue', page: 'crm-contact-details' }, No selector for Toolbar item on mobile device(bug) | |
| { project: 'react', page: 'analytics-sales-analysis' }, | |
| { project: 'react', page: 'user-profile' }, | |
| { project: 'vue', page: 'crm-contact-list' }, | |
| # { project: 'vue', page: 'planning-task-details' }, # Title width is different (screen width 400) | |
| { project: 'vue', page: 'planning-task-list' }, | |
| { project: 'vue', page: 'planning-scheduler' }, | |
| { project: 'vue', page: 'analytics-dashboard' }, | |
| { project: 'vue', page: 'analytics-sales-analysis' }, | |
| { project: 'vue', page: 'analytics-geography' }, | |
| { project: 'vue', page: 'auth-pages' }, | |
| { project: 'vue', page: 'user-profile' }, | |
| ] | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| steps: | |
| - name: Get sources | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Restore npm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Run npm ci | |
| run: npm ci --no-audit --no-fund | |
| - name: Install Internal Packages | |
| uses: DevExpress/github-actions/install-internal-package@main | |
| with: | |
| install-dist: true | |
| - name: Set theme | |
| run: npm run set-theme -- ${{ matrix.theme.fullName }} | |
| - name: Build | |
| run: npm run build | |
| working-directory: packages/${{ matrix.ARGS.project }} | |
| - name: Start app | |
| run: npm run start-apps -- --project ${{ matrix.ARGS.project }} --theme ${{ matrix.theme.name }} | |
| working-directory: packages/testing | |
| - name: Run tests | |
| run: | | |
| all_args="--project ${{ matrix.ARGS.project }} --page ${{ matrix.ARGS.page }} --quarantineMode true --theme ${{ matrix.theme.name }}" | |
| echo "$all_args" | |
| npm run test-testcafe -- $all_args | |
| working-directory: packages/testing | |
| - name: Copy screenshots artifacts | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshots-${{ matrix.ARGS.project }}-${{ matrix.ARGS.page }}-${{ matrix.theme.fullName }} | |
| path: ${{ github.workspace }}/packages/testing/testing/artifacts/compared-screenshots/* | |
| if-no-files-found: ignore | |
| merge-artifacts: | |
| runs-on: ubuntu-latest | |
| needs: testcafe | |
| if: ${{ failure() }} | |
| strategy: | |
| matrix: | |
| project: [ 'angular', 'react', 'vue' ] | |
| steps: | |
| - name: Merge screenshot artifacts | |
| uses: actions/upload-artifact/merge@v4 | |
| continue-on-error: true | |
| with: | |
| name: screenshots-${{ matrix.project }} | |
| pattern: screenshots-${{ matrix.project }}-* | |
| delete-merged: true |