diff --git a/.github/workflows/github-pages-publish.yml b/.github/workflows/github-pages-publish.yml deleted file mode 100644 index caf2db83d28e..000000000000 --- a/.github/workflows/github-pages-publish.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publishing to GitHub Pages step 3 (to prod) - -on: - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: gh-pages - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish-demos.yml b/.github/workflows/publish-demos.yml deleted file mode 100644 index 8e1df20f9299..000000000000 --- a/.github/workflows/publish-demos.yml +++ /dev/null @@ -1,262 +0,0 @@ -name: Publishing to GitHub Pages step 1 (to branch) - -on: - workflow_dispatch: - -jobs: - build-devextreme-all: - runs-on: ubuntu-latest - name: Build DevExtreme + wrappers - timeout-minutes: 20 - - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: DevExtreme - Build-all - env: - BUILD_TEST_INTERNAL_PACKAGE: true - run: pnpm run all:build-dev - - - name: Move packages - run: | - mv ./packages/devextreme/artifacts/npm/devextreme/*.tgz ./devextreme-installer.tgz - mv ./packages/devextreme/artifacts/npm/devextreme-dist/*.tgz ./devextreme-dist-installer.tgz - mv ./packages/devextreme-angular/npm/dist/*.tgz ./devextreme-angular-installer.tgz - mv ./packages/devextreme-react/npm/*.tgz ./devextreme-react-installer.tgz - mv ./packages/devextreme-vue/npm/*.tgz ./devextreme-vue-installer.tgz - - - name: Copy build artifacts - uses: actions/upload-artifact@v4 - with: - name: devextreme-sources - path: | - devextreme-installer.tgz - devextreme-dist-installer.tgz - devextreme-angular-installer.tgz - devextreme-react-installer.tgz - devextreme-vue-installer.tgz - retention-days: 1 - - publish-ES: - runs-on: ubuntu-latest - needs: [build-devextreme-all] - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Install tgz - working-directory: apps/demos - run: pnpm add ../../devextreme-installer.tgz ../../devextreme-dist-installer.tgz ../../devextreme-react-installer.tgz ../../devextreme-vue-installer.tgz ../../devextreme-angular-installer.tgz - - - name: Prepare configs - working-directory: apps/demos - run: pnpm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: pnpm run make-demos-bundle --copy-metadata - - - name: Prepare React demo bundles - working-directory: apps/demos - run: pnpm run make-demos-bundle --framework="React" - - - name: Prepare Vue demo bundles - working-directory: apps/demos - run: pnpm run make-demos-bundle --framework="Vue" - - - name: Save publish-demos directory for ES as an artifact - uses: actions/upload-artifact@v4 - with: - name: publish-demos - path: ./apps/demos/publish-demos - - publish-angular: - runs-on: ubuntu-latest - needs: [build-devextreme-all] - strategy: - fail-fast: false - matrix: - include: - - name: Check generated demos (1/10) - command: CONSTEL=1/10 pnpm run make-demos-bundle --framework="Angular" - index: 1 - - name: Check generated demos (2/10) - command: CONSTEL=2/10 pnpm run make-demos-bundle --framework="Angular" - index: 2 - - name: Check generated demos (3/10) - command: CONSTEL=3/10 pnpm run make-demos-bundle --framework="Angular" - index: 3 - - name: Check generated demos (4/10) - command: CONSTEL=4/10 pnpm run make-demos-bundle --framework="Angular" - index: 4 - - name: Check generated demos (5/10) - command: CONSTEL=5/10 pnpm run make-demos-bundle --framework="Angular" - index: 5 - - name: Check generated demos (6/10) - command: CONSTEL=6/10 pnpm run make-demos-bundle --framework="Angular" - index: 6 - - name: Check generated demos (7/10) - command: CONSTEL=7/10 pnpm run make-demos-bundle --framework="Angular" - index: 7 - - name: Check generated demos (8/10) - command: CONSTEL=8/10 pnpm run make-demos-bundle --framework="Angular" - index: 8 - - name: Check generated demos (9/10) - command: CONSTEL=9/10 pnpm run make-demos-bundle --framework="Angular" - index: 9 - - name: Check generated demos (10/10) - command: CONSTEL=10/10 pnpm run make-demos-bundle --framework="Angular" - index: 10 - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Install tgz - working-directory: apps/demos - run: pnpm add ../../devextreme-installer.tgz ../../devextreme-dist-installer.tgz ../../devextreme-react-installer.tgz ../../devextreme-vue-installer.tgz ../../devextreme-angular-installer.tgz - - - name: Prepare configs - working-directory: apps/demos - run: pnpm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: pnpm run make-demos-bundle --copy-metadata - - - name: Update angular.json - working-directory: apps/demos - run: pnpm run update-angular-json - - - name: Prepare Angular demo bundles - working-directory: apps/demos - run: | - ${{ matrix.command }} - - - name: Angular post process index.html - working-directory: apps/demos - run: pnpm run post-process-angular - - - name: Save publish-demos directory for Angular as an artifact - uses: actions/upload-artifact@v4 - with: - name: publish-demos-angular-${{ matrix.index }} - path: ./apps/demos/publish-demos/ - - deploy: - runs-on: ubuntu-latest - needs: [build-devextreme-all, publish-ES, publish-angular] - steps: - - name: Download publish-demos artifact - uses: actions/download-artifact@v4 - with: - name: publish-demos - path: ./apps/demos/publish-demos - - - name: Download publish-demos artifact - uses: actions/download-artifact@v4 - with: - pattern: publish-demos-angular-* - merge-multiple: true - path: ./apps/demos/publish-demos/ - - - name: Deploy to gh-pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./apps/demos/publish-demos diff --git a/.github/workflows/run-testcafe-on-gh-pages.yml b/.github/workflows/run-testcafe-on-gh-pages.yml deleted file mode 100644 index 5a228b3c929d..000000000000 --- a/.github/workflows/run-testcafe-on-gh-pages.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: Publishing to GitHub Pages step 2 (run tests on branch) - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - workflow_dispatch: - -jobs: - testcafe: - strategy: - fail-fast: false - matrix: - CONSTEL: [react(1/4), react(2/4), react(3/4), react(4/4), vue(1/4), vue(2/4), vue(3/4), vue(4/4), angular(1/4), angular(2/4), angular(3/4), angular(4/4)] - THEME: ['material.blue.light', 'fluent.blue.light'] - - - runs-on: ubuntu-22.04 - name: testcafe-${{ matrix.CONSTEL }}-${{ matrix.THEME }} - timeout-minutes: 60 - env: - TARGET_BRANCH: ${{ github.ref_name }} - - steps: - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Checkout gh-pages branch - uses: actions/checkout@v4 - with: - ref: gh-pages - path: gh-pages - - - name: Run Web Server - working-directory: gh-pages - run: | - python -m http.server 8080 & - python -m http.server 8081 & - python -m http.server 8082 & - python -m http.server 8083 & - - - name: Checkout main branch - uses: actions/checkout@v4 - with: - ref: ${{ env.TARGET_BRANCH }} - path: devextreme - - - name: Console.log ls - run: ls -al & cd gh-pages & ls -al - - - name: Setup Chrome - uses: ./devextreme/.github/actions/setup-chrome - with: - chrome-version: '145.0.7632.67' - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - working-directory: devextreme - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Run TestCafe tests - working-directory: devextreme/apps/demos - env: - CHANGEDFILEINFOSPATH: changed-files.json - BROWSERS: chrome:headless --window-size=1200,800 --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning - #DEBUG: hammerhead:*,testcafe:* - CONCURRENCY: 4 - TCQUARANTINE: true - CONSTEL: ${{ matrix.CONSTEL }} - THEME: ${{ matrix.THEME }} - ISGITHUBDEMOS: true - # DISABLE_DEMO_TEST_SETTINGS: all # Uncomment to ignore all the visualtestrc.json settings - # DISABLE_DEMO_TEST_SETTINGS: ignore # Uncomment to ignore the `ignore` field - # DISABLE_DEMO_TEST_SETTINGS: comparison-options # Uncomment to ignore the `comparison-options` field - CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally - run: pnpm exec nx test-testcafe - - - name: Copy screenshots artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v4 - with: - name: screenshots - path: ${{ github.workspace }}/devextreme/apps/demos/testing/artifacts/compared-screenshots/**/* - if-no-files-found: ignore