From 153eb65411257f0a5e9342cce61cd178ad6fd998 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 20:58:52 +0400 Subject: [PATCH 01/15] Test --- .github/actions/pin-browsers/action.yml | 34 ---- .../send-teams-notification/action.yml | 77 ------- .github/codeql/codeql-config.yml | 8 - .github/workflows/codeql.yml | 70 ------- .github/workflows/devextreme_npm_tests.yml | 161 --------------- .github/workflows/lgtm_sync.yml | 46 ----- .github/workflows/lint.yml | 185 ----------------- .../qunit_tests-additional-renovation.yml | 189 ------------------ .github/workflows/qunit_tests-renovation.yml | 131 ------------ .github/workflows/renovate_autoapprove.yml | 13 -- .github/workflows/renovation.yml | 81 -------- .github/workflows/styles.yml | 52 ----- .github/workflows/testcafe_tests.yml | 102 ---------- .github/workflows/themebuilder_dart_tests.yml | 77 ------- .github/workflows/ts_declarations.yml | 117 ----------- 15 files changed, 1343 deletions(-) delete mode 100644 .github/actions/pin-browsers/action.yml delete mode 100644 .github/actions/send-teams-notification/action.yml delete mode 100644 .github/codeql/codeql-config.yml delete mode 100644 .github/workflows/codeql.yml delete mode 100644 .github/workflows/lgtm_sync.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/qunit_tests-additional-renovation.yml delete mode 100644 .github/workflows/qunit_tests-renovation.yml delete mode 100644 .github/workflows/renovate_autoapprove.yml delete mode 100644 .github/workflows/renovation.yml delete mode 100644 .github/workflows/styles.yml delete mode 100644 .github/workflows/testcafe_tests.yml delete mode 100644 .github/workflows/themebuilder_dart_tests.yml delete mode 100644 .github/workflows/ts_declarations.yml diff --git a/.github/actions/pin-browsers/action.yml b/.github/actions/pin-browsers/action.yml deleted file mode 100644 index a074d030ba24..000000000000 --- a/.github/actions/pin-browsers/action.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "Pin Browsers" -description: "Fill CHROME_VERSION, FIREFOX_VERSION variables below to enable this action" - -runs: - using: composite - steps: - - shell: bash - - env: - # List of browser versions - # Chrome: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable - # Firefox: https://www.ubuntuupdates.org/package/ubuntu_mozilla_security/focal/main/base/firefox - CHROME_VERSION: "" - FIREFOX_VERSION: "" - - run: | - - if [ -n "$CHROME_VERSION" ]; then - curl -L "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb" > /tmp/chrome.deb - sudo dpkg -i /tmp/chrome.deb - unlink /tmp/chrome.deb - google-chrome-stable --version - else - echo "Skip Chrome upgrade" - fi - - if [ -n "$FIREFOX_VERSION" ]; then - curl -L "http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu/pool/main/f/firefox/firefox_${FIREFOX_VERSION}_amd64.deb" > /tmp/firefox.deb - sudo dpkg -i /tmp/firefox.deb - unlink /tmp/firefox.deb - firefox --version - else - echo "Skip Firefox upgrade" - fi diff --git a/.github/actions/send-teams-notification/action.yml b/.github/actions/send-teams-notification/action.yml deleted file mode 100644 index b6e80e023fb6..000000000000 --- a/.github/actions/send-teams-notification/action.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: "Notify Teams" - -inputs: - run_id: - description: "Current run id" - required: true - hook_url: - description: "URL of MS Teams hook" - required: true - bearer_token: - description: "Github token" - required: false - specific_repo: - description: "Filter by repository name (format: `organization/repository`)" - required: false - specific_branch: - description: "Filter by branch name" - required: false - -runs: - using: "composite" - steps: - - name: execute - shell: bash - run: | - if [ "${{github.event_name}}" != "push" ]; then exit 0; fi - if [ "${{inputs.specific_repo}}" != "" ] && [ "${{inputs.specific_repo}}" != "${{github.repository}}" ]; then exit 0; fi - if [ "${{inputs.specific_branch}}" != "" ] && [ "refs/heads/${{inputs.specific_branch}}" != "${{github.ref}}" ]; then exit 0; fi - - RUN_INFO=$(curl --silent https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ inputs.run_id }}) - COMMIT_MSG=$(echo $RUN_INFO | jq -r .head_commit.message) - COMMIT_AUTHOR=$(echo $RUN_INFO | jq -r .head_commit.author.name) - WEBPAGE_URL=$(echo $RUN_INFO | jq -r .html_url) - - curl --silent -X POST \ - --url ${{ inputs.hook_url }} \ - --header 'authorization: Bearer ${{ inputs.bearer_token }}' \ - --header "Content-Type: application/json; charset=utf-8" \ - --data '{ - "@context": "https://schema.org/extensions", - "@type": "MessageCard", - "text": "Run failed", - "sections": [ - { - "facts": [ - { - "name": "Repository", - "value": "${{ github.repository }}" - }, - { - "name": "Workflow", - "value": "${{ github.workflow }}" - }, - { - "name": "Committer", - "value": "'"$COMMIT_AUTHOR"'" - }, - { - "name": "Commit msg", - "value": "'"$COMMIT_MSG"'" - } - ] - } - ], - "potentialAction": [ - { - "@type": "OpenUri", - "name": "View in GitHub", - "targets": [ - { - "os": "default", - "uri": "'"$WEBPAGE_URL"'" - } - ] - } - ] - }' diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml deleted file mode 100644 index c039562810ad..000000000000 --- a/.github/codeql/codeql-config.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: "DevExtreme CodeQL config" - -paths-ignore: - - "artifacts/**" - - "themebuilder-scss/dist/**" - - "/js/bundles/dx.custom.js" - - "/js/localization/default_messages.js" - - "/js/localization/cldr-data/**" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index a34926960ac0..000000000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,70 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - schedule: - - cron: '0 1 * * *' - workflow_dispatch: - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'csharp', 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - config-file: ./.github/codeql/codeql-config.yml - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 85dc14adbd81..83379a1ec021 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -67,8 +67,6 @@ jobs: - name: Get sources uses: actions/checkout@v2 - - uses: ./.github/actions/pin-browsers - - name: Restore npm cache uses: actions/cache@v2 with: @@ -105,162 +103,3 @@ jobs: - name: Update angular metadata run: | npm run internal-tool -- update-meta --output-path ./devextreme-angular-repo/packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ./js --exclude js/renovation/ - - - name: Build with Angular 7 - run: | - cd ./devextreme-angular-repo - npm run build - - - name: Run tests with Angular 7 - run: | - cd ./devextreme-angular-repo - npx lerna run --scope devextreme-angular gulp -- run.tests - - test_bundlers: - name: Bundlers tests - needs: build - runs-on: devextreme-shr2 - timeout-minutes: 60 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-npm - path: ./testing/bundlers - - - name: Install bundlers - working-directory: ./testing/bundlers - run: npm install --no-audit --no-fund - - - name: Install DevExtreme package - working-directory: ./testing/bundlers - run: npm install --save-dev $(find . -maxdepth 1 -name "devextreme-*.tgz") - - - name: Generate entry files - working-directory: ./testing/bundlers - run: npm run generate-entry-files - - - name: Build webpack cjs - working-directory: ./testing/bundlers - run: npm run build:webpack-cjs - - - name: Build browserify cjs - working-directory: ./testing/bundlers - run: npm run build:browserify-cjs - - - name: Build webpack - working-directory: ./testing/bundlers - run: npm run build:webpack - - - name: Build rollup - working-directory: ./testing/bundlers - run: npm run build:rollup - - - name: Build parcel - working-directory: ./testing/bundlers - run: npm run build:parcel - - - name: Build vite - working-directory: ./testing/bundlers - run: npm run build:vite - - test_demos: - needs: build - strategy: - fail-fast: false - matrix: - CONSTEL: [jquery(1/4), jquery(2/4), jquery(3/4), jquery(4/4)] - - runs-on: devextreme-shr2 - name: Demos visual tests ${{ matrix.CONSTEL }} - timeout-minutes: 20 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - uses: ./.github/actions/pin-browsers - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Clone devextreme-demos 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-demos ./devextreme-demos - - - name: Clone devextreme-demos repo - run: | - BASE_BRANCH=$(node -p -e "require('./package.json').version.slice(0, 4).replace('.', '_')") - test -d ./devextreme-demos || git clone -b $BASE_BRANCH https://github.com/devexpress/devextreme-demos ./devextreme-demos - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-npm - path: ./devextreme-demos - - - name: Install packages for devextreme-demos - working-directory: ./devextreme-demos - run: npm install --no-audit --no-fund - - - name: Install devextreme package - working-directory: ./devextreme-demos - run: npm install --legacy-peer-deps $(find . -maxdepth 1 -name "devextreme-*.tgz") - - - name: Prepare JS - working-directory: ./devextreme-demos - run: npm run prepare-js - - - name: Run Web Server - working-directory: ./devextreme-demos - run: | - python -m http.server 8080 & - python -m http.server 8081 & - python -m http.server 8082 & - python -m http.server 8083 & - - - name: Run TestCafe tests - working-directory: ./devextreme-demos - env: - BROWSERS: chrome:headless --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 - CONCURRENCY: 4 - TCQUARANTINE: true - CONSTEL: ${{ matrix.CONSTEL }} - ENABLE_DEMO_TEST_SETTINGS: true - run: npm run test-testcafe - - - name: Copy screenshots artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v2 - with: - name: screenshots - path: ${{ github.workspace }}/devextreme-demos/testing/artifacts/* - if-no-files-found: ignore - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [build, test_angular, test_bundlers, test_demos] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/lgtm_sync.yml b/.github/workflows/lgtm_sync.yml deleted file mode 100644 index 75054050f060..000000000000 --- a/.github/workflows/lgtm_sync.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Sync LGTM.com alerts - -on: - schedule: - - cron: '30 1 * * *' - -jobs: - lgtm-sync: - runs-on: devextreme-shr2 - timeout-minutes: 5 - env: - # NOTE: The LGTM.com doesn't scan forks - # Consider another workflow for forked repository (for example CodeQL) - GITHUB_REPOSITORY: ${{ github.repository }} - steps: - - name: Get Project info - run: | - RESPONSE=$(curl -X GET "https://lgtm.com/api/v1.0/projects/g/${{ env.GITHUB_REPOSITORY }}" -H 'Content-Type: application/json') - echo "PROJECT=$RESPONSE" >> $GITHUB_ENV - - name: Get Latest Analysis info - run: | - RESPONSE=$(curl -X GET 'https://lgtm.com/api/v1.0/analyses/${{ fromJSON(env.PROJECT).id }}/commits/latest' -H 'Accept: application/json') - echo "ANALYSIS=$RESPONSE" >> $GITHUB_ENV - - name: Get SARIF - run: | - curl -X GET "https://lgtm.com/api/v1.0/analyses/${{ fromJSON(env.ANALYSIS).id }}/alerts" -H 'Accept: application/sarif+json' >> lgtm.sarif - - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v1 - with: - sarif_file: lgtm.sarif - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [lgtm-sync] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index cbc3b43872d1..000000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,185 +0,0 @@ -name: Lint - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - Renovation: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Compile renovation - run: npm run compile:r - - - name: Lint renovation - run: npm run lint-renovation - - TS: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Run npm install TS testing - run: | - pushd testing/typescript - npm install --no-audit --no-fund - popd - - - name: Build - run: npm run build - - - name: Lint TS - run: npm run lint-ts - - - name: Lint .d.ts - run: npm run lint-dts - - JS: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Build - run: npm run build - - - name: Lint JS - run: npm run lint-js - - CSS: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Lint CSS - run: npm run lint-css - - package_lock_npm_6: - runs-on: devextreme-shr2 - timeout-minutes: 10 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Check package-lock - run: | - node -v - npm -v - npm install --no-audit --no-fund - - - name: Check build - run: npm run build:dev - - package_lock: - runs-on: devextreme-shr2 - timeout-minutes: 10 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Check package-lock - run: | - node -v - npm -v - npm install --no-audit --no-fund --ignore-scripts - git diff --exit-code package-lock.json - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [Renovation, TS, JS, CSS, package_lock, package_lock_npm_6] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/qunit_tests-additional-renovation.yml b/.github/workflows/qunit_tests-additional-renovation.yml deleted file mode 100644 index 04beb7caef67..000000000000 --- a/.github/workflows/qunit_tests-additional-renovation.yml +++ /dev/null @@ -1,189 +0,0 @@ -name: Additional QUnit - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - build: - runs-on: devextreme-shr2 - name: Build - timeout-minutes: 15 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Build - env: - DEVEXTREME_TEST_CI: "true" - DOTNET_CLI_TELEMETRY_OPTOUT: "true" - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true" - run: npm run build - - - name: Zip artifacts - run: | - 7z a -tzip -mx3 -mmt2 artifacts.zip artifacts scss/bundles testing/tests/Renovation/widgets.json - - - name: Upload build artifacts - uses: actions/upload-artifact@v2 - with: - name: devextreme-artifacts - path: artifacts.zip - retention-days: 1 - - qunit-tests: - needs: build - runs-on: devextreme-shr2 - name: ${{ matrix.envs.name }} - timeout-minutes: 30 - strategy: - fail-fast: false - matrix: - envs: [ - { CONSTEL: "misc", TZ: 'PST8PDT', name: 'misc-PST8PDT' }, - { CONSTEL: "misc", TZ: 'Japan', name: 'misc-Japan' }, - { CONSTEL: "misc", TZ: 'Australia/ACT', name: 'misc-Australia' }, - { CONSTEL: "ui.editors", TZ: 'PST8PDT', name: 'ui.editors-PST8PDT' }, - { CONSTEL: "ui.editors", TZ: 'Japan', name: 'ui.editors-Japan' }, - { CONSTEL: "ui.editors", TZ: 'Australia/ACT', name: 'ui.editors-Australia' }, - { CONSTEL: "ui.editors", TZ: 'Europe/London', name: 'ui.editors-Europe' }, - { CONSTEL: "ui.grid", TZ: 'PST8PDT', name: 'ui.grid-PST8PDT' }, - { CONSTEL: "ui.scheduler", TZ: 'PST8PDT', name: 'ui.scheduler-PST8PDT' }, - { CONSTEL: "ui.scheduler", TZ: 'Japan', name: 'ui.scheduler-Japan' }, - { CONSTEL: "ui.scheduler", TZ: 'Australia/ACT', name: 'ui.scheduler-Australia' }, - { CONSTEL: "ui.scheduler", TZ: 'Europe/London', name: 'ui.scheduler-Europe' }, - { PERF: true, JQUERY: true, NO_HEADLESS: true, name: 'Performance' }, - { MOBILE_UA: "ios9", CONSTEL: "ui", name: 'ui-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.widgets(1/3)", NO_HEADLESS: true, name: 'ui.widgets(1/3)-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.widgets(2/3)", NO_HEADLESS: true, name: 'ui.widgets(2/3)-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.widgets(3/3)", NO_HEADLESS: true, name: 'ui.widgets(3/3)-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.editors", NO_HEADLESS: true, name: 'ui.editors-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.grid", NO_HEADLESS: true, name: 'ui.grid-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "ui.scheduler", NO_HEADLESS: true, name: 'ui.scheduler-iOS9' }, - { MOBILE_UA: "ios9", CONSTEL: "viz", name: 'viz-iOS9' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui", name: 'ui-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.widgets(1/3)", NO_HEADLESS: true, name: 'ui.widgets(1/3)-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.widgets(2/3)", NO_HEADLESS: true, name: 'ui.widgets(2/3)-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.widgets(3/3)", NO_HEADLESS: true, name: 'ui.widgets(3/3)-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.editors", NO_HEADLESS: true, name: 'ui.editors-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.grid", NO_HEADLESS: true, name: 'ui.grid-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "ui.scheduler", NO_HEADLESS: true, name: 'ui.scheduler-android6' }, - { MOBILE_UA: "android6", JQUERY: true, CONSTEL: "viz", name: 'viz-android6' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "export", name: 'export-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "misc", name: 'misc-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "ui", name: 'ui-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "ui.editors", name: 'ui.editors-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "ui.grid", name: 'ui.grid-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "ui.scheduler", name: 'ui.scheduler-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "viz", name: 'viz-firefox' }, - { BROWSER: "firefox", JQUERY: true, CONSTEL: "renovation", name: 'renovation-firefox' } - ] - - steps: - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-artifacts - - - name: Setup firefox profile - run: | - mkdir -p /tmp/firefox-profile - for p in \ - '"browser.shell.checkDefaultBrowser", false' \ - '"datareporting.policy.dataSubmissionEnabled", false' \ - '"font.name-list.monospace.x-western", "Liberation Mono"' \ - '"font.name-list.sans-serif.x-western", "Liberation Sans"' \ - '"font.name-list.serif.x-western", "Liberation Serif"' ; do echo "user_pref($p);" >> /tmp/firefox-profile/prefs.js; done - -# - name: Update apt -# run: | -# sudo apt-get update - -# - name: Setup utils -# run: | -# sudo apt-get install -y dbus-x11 httping x11vnc xvfb - - - name: Get sources - uses: actions/checkout@v2 - - - uses: ./.github/actions/pin-browsers - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-package-lock --no-audit --no-fund - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-artifacts - - - name: Unpack artifacts - run: 7z x artifacts.zip - - - name: Build dotnet - run: dotnet build build/build-dotnet.sln - - - name: Run QUnit tests - env: - CONSTEL: ${{ matrix.envs.CONSTEL }} - BROWSER: ${{ matrix.envs.BROWSER }} - JQUERY: ${{ matrix.envs.JQUERY }} - MOBILE_UA: ${{ matrix.envs.MOBILE_UA }} - TZ: ${{ matrix.envs.TZ }} - PERF: ${{ matrix.envs.PERF }} - NO_HEADLESS: ${{ matrix.envs.NO_HEADLESS }} - NORENOVATION: "false" - GITHUBACTION: "true" - TARGET: "test" - DISPLAY: ":99" - run: | - chmod +x ./docker-ci.sh - ./docker-ci.sh - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [build, qunit-tests] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/qunit_tests-renovation.yml b/.github/workflows/qunit_tests-renovation.yml deleted file mode 100644 index ca495b081aa4..000000000000 --- a/.github/workflows/qunit_tests-renovation.yml +++ /dev/null @@ -1,131 +0,0 @@ -name: QUnit tests for renovation - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - build: - runs-on: devextreme-shr2 - name: Build - timeout-minutes: 60 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Build - env: - DEVEXTREME_TEST_CI: "true" - DOTNET_CLI_TELEMETRY_OPTOUT: "true" - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true" - run: npm run build - - - name: Zip artifacts - run: | - 7z a -tzip -mx3 -mmt2 artifacts.zip artifacts scss/bundles testing/tests/Renovation/widgets.json - - - name: Upload build artifacts - uses: actions/upload-artifact@v2 - with: - name: devextreme-artifacts - path: artifacts.zip - retention-days: 1 - - qunit-tests: - needs: build - runs-on: devextreme-shr2 - name: Constel ${{ matrix.CONSTEL }} - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - CONSTEL: [ export, misc, ui, ui.widgets(1/2), ui.widgets(2/2), ui.editors, ui.grid, ui.scheduler(1/2), ui.scheduler(2/2), viz, renovation ] - - steps: - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-artifacts - - - name: Get sources - uses: actions/checkout@v2 - - - uses: ./.github/actions/pin-browsers - -# - name: Update apt -# run: | -# sudo apt-get update - -# - name: Setup utils -# run: | -# sudo apt-get install -y dbus-x11 httping x11vnc xvfb - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-artifacts - - - name: Unpack artifacts - run: 7z x artifacts.zip - - - name: Build dotnet - run: dotnet build build/build-dotnet.sln - - - name: Run QUnit tests - env: - CONSTEL: ${{ matrix.CONSTEL }} - NORENOVATION: "false" - GITHUBACTION: "true" - TARGET: "test" - run: | - chmod +x ./docker-ci.sh - ./docker-ci.sh - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [build, qunit-tests] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/renovate_autoapprove.yml b/.github/workflows/renovate_autoapprove.yml deleted file mode 100644 index 4cedf63f1cbb..000000000000 --- a/.github/workflows/renovate_autoapprove.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Auto approve renovate bot PR - -on: - pull_request_target - -jobs: - auto-approve: - runs-on: devextreme-shr2 - steps: - - uses: hmarr/auto-approve-action@v2 - if: github.actor == 'renovate-bot' || github.actor == 'renovate[bot]' - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/renovation.yml b/.github/workflows/renovation.yml deleted file mode 100644 index 1b3a3eb6b335..000000000000 --- a/.github/workflows/renovation.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Renovation - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - jest-tests: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Jest test - run: | - npm i - npx gulp localization - npm run test-jest - generation: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Check components generation - run: | - npx gulp localization - npx gulp native-components-compilation-check - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [jest-tests, generation] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/styles.yml b/.github/workflows/styles.yml deleted file mode 100644 index 74e4b3e5c558..000000000000 --- a/.github/workflows/styles.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Styles tests - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - Tests: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Run tests - run: npm run test-styles - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [Tests] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/testcafe_tests.yml b/.github/workflows/testcafe_tests.yml deleted file mode 100644 index ebb91ee24db2..000000000000 --- a/.github/workflows/testcafe_tests.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: TestCafe tests - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - testcafe: - name: ${{ matrix.ARGS.name }} - strategy: - fail-fast: false - matrix: - ARGS: [ - { componentFolder: "treeList", name: "treeList", quarantineMode: true }, - { componentFolder: "dataGrid", name: "dataGrid", quarantineMode: true }, - { componentFolder: "scheduler", name: "scheduler", quarantineMode: true }, - { componentFolder: "scheduler", name: "scheduler renovation", quarantineMode: true, inProgressRenovation: true }, - { componentFolder: "editors", name: "editors", quarantineMode: false }, - { componentFolder: "navigation", name: "navigation", quarantineMode: false }, - { componentFolder: "renovation", name: "renovation", quarantineMode: false } - ] - runs-on: devextreme-shr2 - timeout-minutes: 90 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - uses: ./.github/actions/pin-browsers - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Build - env: - DEVEXTREME_TEST_CI: "true" - run: BUILD_INPROGRESS_RENOVATION="${{ matrix.ARGS.inProgressRenovation == true }}" npm run build - - - name: Prepare renovation playground - if: matrix.ARGS.componentFolder == 'renovation' - run: | - pushd testing/renovation - npm install --no-audit --no-fund - popd - npm run build:angular - npm run build:react - npx gulp build-renovation-testing - - - name: Run TestCafe tests - run: | - [ "${{ matrix.ARGS.inProgressRenovation }}" == "true" ] && META_RENOVATION="--meta renovation" - all_args="--concurrency 2 --browsers=chrome:devextreme-shr2 --componentFolder ${{ matrix.ARGS.componentFolder }} --quarantineMode ${{ matrix.ARGS.quarantineMode}} $META_RENOVATION" - echo "$all_args" - npm run test-testcafe -- $all_args - - - name: Copy compared screenshot artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v2 - with: - name: compared-screenshots - path: ${{ github.workspace }}/testing/testcafe/artifacts/compared-screenshots/**/* - if-no-files-found: ignore - - name: Copy failed test artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v2 - with: - name: failed-tests - path: ${{ github.workspace }}/testing/testcafe/artifacts/failedtests/**/* - if-no-files-found: ignore - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [testcafe] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/themebuilder_dart_tests.yml b/.github/workflows/themebuilder_dart_tests.yml deleted file mode 100644 index 670a572d8bf4..000000000000 --- a/.github/workflows/themebuilder_dart_tests.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Themebuilder and Styles tests - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - dart-test: - runs-on: devextreme-shr2 - timeout-minutes: 30 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Build etalon bundles - run: npx gulp style-compiler-themes-ci - - - name: Install dart - uses: dart-lang/setup-dart@v1 - - - name: Install dart packages - run: dart pub get - working-directory: ./themebuilder-scss/dart-compiler - - - name: Run npm install for themebuilder-scss - run: npm install --no-audit --no-fund - working-directory: ./themebuilder-scss - - - name: Build - run: npm run build - working-directory: ./themebuilder-scss - - - name: Run themebuilder tests (full set, node) - run: npm run test - working-directory: ./themebuilder-scss - - - name: Run themebuilder tests (integration only, dart) - run: npm run test-dart - working-directory: ./themebuilder-scss - - - name: Check styles for duplicate rules (generic) - run: npx stylelint --config testing/styles/bundles-stylelint-config.json "artifacts/**/dx.light.css" - - - name: Check styles for duplicate rules (material) - run: npx stylelint --config testing/styles/bundles-stylelint-config.json "artifacts/**/dx.material.blue.light.css" - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [dart-test] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 diff --git a/.github/workflows/ts_declarations.yml b/.github/workflows/ts_declarations.yml deleted file mode 100644 index 45d43b61f52e..000000000000 --- a/.github/workflows/ts_declarations.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: TS Declarations - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - check-ts-bundle: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Check dx.all.d.ts is up-to-date - run: | - target=./ts/dx.all.d.ts - cp $target $target.current - - npm run update-ts - - if ! diff $target.current $target -U 5 > $target.diff; then - echo "FAIL: $target is outdated:" - cat $target.diff | sed "1,2d" - exit 1 - else - echo "TS is up-to-date" - fi - - validate-declarations: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Validate declarations - run: npm run validate-declarations - - check-ts-compilation: - runs-on: devextreme-shr2 - timeout-minutes: 60 - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Run npm install - run: npm install --no-audit --no-fund - - - name: Check sources compilation - run: npm run validate-ts - - - name: Check test cases - run: npm run test-typescript - - notify: - runs-on: devextreme-shr2 - name: Send notifications - needs: [check-ts-bundle, validate-declarations, check-ts-compilation] - if: always() && contains(needs.*.result, 'failure') - - steps: - - uses: actions/checkout@v2 - - uses: ./.github/actions/send-teams-notification - with: - hook_url: ${{secrets.TEAMS_ALERT}} - run_id: ${{github.run_id}} - bearer_token: ${{secrets.GITHUB_TOKEN}} - specific_repo: DevExpress/DevExtreme - specific_branch: 21_2 From 3f78162364a38d575fb4fb177e7d1881700a0d7f Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 21:22:58 +0400 Subject: [PATCH 02/15] Skip build repo --- .github/workflows/devextreme_npm_tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 83379a1ec021..464e2ceb3400 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,9 +38,6 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund - - name: Build devextreme repo - run: test -d artifacts || npm run build-npm-devextreme - - name: Pack devextreme package working-directory: ./artifacts/npm/devextreme run: npm pack From a7c4aac2e7f2b75e9298475dcf6202d67f70557a Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 21:36:51 +0400 Subject: [PATCH 03/15] Skip pack --- .github/workflows/devextreme_npm_tests.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 464e2ceb3400..4cac7f446ff6 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,17 +38,6 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund - - name: Pack devextreme package - working-directory: ./artifacts/npm/devextreme - run: npm pack - - - name: Copy build artifacts - uses: actions/upload-artifact@v2 - with: - name: devextreme-npm - path: ./artifacts/npm/devextreme/devextreme-*.tgz - retention-days: 1 - test_angular: name: Angular wrapper tests needs: build From 62891c76bb8730fdafcb58ae5e2f5c877df62b1c Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 22:21:11 +0400 Subject: [PATCH 04/15] Simplify --- .github/workflows/devextreme_npm_tests.yml | 38 ---------------------- 1 file changed, 38 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 4cac7f446ff6..1e238bbacddb 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -10,37 +10,8 @@ on: branches: [21_2] jobs: - build: - runs-on: devextreme-shr2 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Restore artifacts cache - uses: actions/cache@v2 - with: - path: ./artifacts - key: build-npm-devextreme-artifacts-${{ github.sha }} - - - name: Install packages in devextreme repo - run: test -d artifacts || npm install --no-audit --no-fund - test_angular: name: Angular wrapper tests - needs: build runs-on: devextreme-shr2 timeout-minutes: 30 @@ -60,9 +31,6 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Install packages in devextreme repo - run: npm install --no-audit --no-fund - - name: Clone devextreme-angular repo from PR author fork continue-on-error: true if: github.event_name == 'pull_request' @@ -72,12 +40,6 @@ jobs: run: | test -d ./devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ./devextreme-angular-repo - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-npm - path: ./devextreme-angular-repo/packages/devextreme-angular - - name: Install devextreme package working-directory: ./devextreme-angular-repo/packages/devextreme-angular run: npm install --save-dev $(ls *.tgz) From f98169c151af0b0391aca1134f9ad02b6e34a733 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 22:49:30 +0400 Subject: [PATCH 05/15] Revert "Simplify" This reverts commit 62891c76bb8730fdafcb58ae5e2f5c877df62b1c. --- .github/workflows/devextreme_npm_tests.yml | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 1e238bbacddb..4cac7f446ff6 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -10,8 +10,37 @@ on: branches: [21_2] jobs: + build: + runs-on: devextreme-shr2 + + steps: + - name: Get sources + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '15' + + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: ./node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node-modules + + - name: Restore artifacts cache + uses: actions/cache@v2 + with: + path: ./artifacts + key: build-npm-devextreme-artifacts-${{ github.sha }} + + - name: Install packages in devextreme repo + run: test -d artifacts || npm install --no-audit --no-fund + test_angular: name: Angular wrapper tests + needs: build runs-on: devextreme-shr2 timeout-minutes: 30 @@ -31,6 +60,9 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules + - name: Install packages in devextreme repo + run: npm install --no-audit --no-fund + - name: Clone devextreme-angular repo from PR author fork continue-on-error: true if: github.event_name == 'pull_request' @@ -40,6 +72,12 @@ jobs: run: | test -d ./devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ./devextreme-angular-repo + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: devextreme-npm + path: ./devextreme-angular-repo/packages/devextreme-angular + - name: Install devextreme package working-directory: ./devextreme-angular-repo/packages/devextreme-angular run: npm install --save-dev $(ls *.tgz) From 25d807a1d82ad7715c1fde190e4dadb3c2f0773a Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 22:49:30 +0400 Subject: [PATCH 06/15] Revert "Skip pack" This reverts commit a7c4aac2e7f2b75e9298475dcf6202d67f70557a. --- .github/workflows/devextreme_npm_tests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 4cac7f446ff6..464e2ceb3400 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,6 +38,17 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund + - name: Pack devextreme package + working-directory: ./artifacts/npm/devextreme + run: npm pack + + - name: Copy build artifacts + uses: actions/upload-artifact@v2 + with: + name: devextreme-npm + path: ./artifacts/npm/devextreme/devextreme-*.tgz + retention-days: 1 + test_angular: name: Angular wrapper tests needs: build From b976e516c733101b83c9d5ec425b5835cd1154f2 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 28 Nov 2022 22:49:30 +0400 Subject: [PATCH 07/15] Revert "Skip build repo" This reverts commit 3f78162364a38d575fb4fb177e7d1881700a0d7f. --- .github/workflows/devextreme_npm_tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 464e2ceb3400..83379a1ec021 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,6 +38,9 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund + - name: Build devextreme repo + run: test -d artifacts || npm run build-npm-devextreme + - name: Pack devextreme package working-directory: ./artifacts/npm/devextreme run: npm pack From 124c125addebd7056f8a2c9fbc589035c05f4406 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 00:21:50 +0400 Subject: [PATCH 08/15] Update repo path --- .github/workflows/devextreme_npm_tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 83379a1ec021..d40ae433a001 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -80,26 +80,26 @@ jobs: - name: Clone devextreme-angular 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-angular ./devextreme-angular-repo + run: git clone -b ${{github.event.pull_request.head.ref}} https://github.com/${{github.event.pull_request.user.login}}/devextreme-angular ../devextreme-angular-repo - name: Clone devextreme-angular repo run: | - test -d ./devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ./devextreme-angular-repo + test -d ../devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ../devextreme-angular-repo - name: Download artifacts uses: actions/download-artifact@v2 with: name: devextreme-npm - path: ./devextreme-angular-repo/packages/devextreme-angular + path: ../devextreme-angular-repo/packages/devextreme-angular - name: Install devextreme package - working-directory: ./devextreme-angular-repo/packages/devextreme-angular + working-directory: ../devextreme-angular-repo/packages/devextreme-angular run: npm install --save-dev $(ls *.tgz) - name: Install packages for devextreme-angular - working-directory: ./devextreme-angular-repo + working-directory: ../devextreme-angular-repo run: npm install --no-audit --no-fund - name: Update angular metadata run: | - npm run internal-tool -- update-meta --output-path ./devextreme-angular-repo/packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ./js --exclude js/renovation/ + npm run internal-tool -- update-meta --output-path ../devextreme-angular-repo/packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ./js --exclude js/renovation/ From 573c2d071739ea829cdab4ce55604d0327667768 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 15:48:43 +0400 Subject: [PATCH 09/15] Update repo path --- .github/workflows/devextreme_npm_tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index d40ae433a001..3e7955e427af 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -101,5 +101,6 @@ jobs: run: npm install --no-audit --no-fund - name: Update angular metadata + working-directory: ../devextreme-angular-repo run: | - npm run internal-tool -- update-meta --output-path ../devextreme-angular-repo/packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ./js --exclude js/renovation/ + npm run internal-tool -- update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ From 4b38f0ec860df2eb4ddc8e974905c1b477d0d08f Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 15:55:06 +0400 Subject: [PATCH 10/15] Update repo path --- .github/workflows/devextreme_npm_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 3e7955e427af..79fd5f4f98b2 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -103,4 +103,4 @@ jobs: - name: Update angular metadata working-directory: ../devextreme-angular-repo run: | - npm run internal-tool -- update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ + dx-tools update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ From 64cd24dab3ba876c14bc6859c0c30d9cb3e01b27 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 18:23:30 +0400 Subject: [PATCH 11/15] Update --- .github/workflows/devextreme_npm_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index 79fd5f4f98b2..d4ba9855bddb 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -103,4 +103,4 @@ jobs: - name: Update angular metadata working-directory: ../devextreme-angular-repo run: | - dx-tools update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ + npx dx-tools update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ From c2400cb700cec360f74a5200fa424d6e0e71ec4b Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 18:29:42 +0400 Subject: [PATCH 12/15] Skip --- .github/workflows/devextreme_npm_tests.yml | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index d4ba9855bddb..fd8904d5c7f5 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,19 +38,19 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund - - name: Build devextreme repo - run: test -d artifacts || npm run build-npm-devextreme - - - name: Pack devextreme package - working-directory: ./artifacts/npm/devextreme - run: npm pack - - - name: Copy build artifacts - uses: actions/upload-artifact@v2 - with: - name: devextreme-npm - path: ./artifacts/npm/devextreme/devextreme-*.tgz - retention-days: 1 +# - name: Build devextreme repo +# run: test -d artifacts || npm run build-npm-devextreme +# +# - name: Pack devextreme package +# working-directory: ./artifacts/npm/devextreme +# run: npm pack +# +# - name: Copy build artifacts +# uses: actions/upload-artifact@v2 +# with: +# name: devextreme-npm +# path: ./artifacts/npm/devextreme/devextreme-*.tgz +# retention-days: 1 test_angular: name: Angular wrapper tests @@ -74,8 +74,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Install packages in devextreme repo - run: npm install --no-audit --no-fund +# - name: Install packages in devextreme repo +# run: npm install --no-audit --no-fund - name: Clone devextreme-angular repo from PR author fork continue-on-error: true @@ -86,11 +86,11 @@ jobs: run: | test -d ../devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ../devextreme-angular-repo - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-npm - path: ../devextreme-angular-repo/packages/devextreme-angular +# - name: Download artifacts +# uses: actions/download-artifact@v2 +# with: +# name: devextreme-npm +# path: ../devextreme-angular-repo/packages/devextreme-angular - name: Install devextreme package working-directory: ../devextreme-angular-repo/packages/devextreme-angular From c8c095db4bf8f26e139a196b35a089d801559e16 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Wed, 30 Nov 2022 18:43:15 +0400 Subject: [PATCH 13/15] Revert skipping --- .github/workflows/devextreme_npm_tests.yml | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml index fd8904d5c7f5..d4ba9855bddb 100644 --- a/.github/workflows/devextreme_npm_tests.yml +++ b/.github/workflows/devextreme_npm_tests.yml @@ -38,19 +38,19 @@ jobs: - name: Install packages in devextreme repo run: test -d artifacts || npm install --no-audit --no-fund -# - name: Build devextreme repo -# run: test -d artifacts || npm run build-npm-devextreme -# -# - name: Pack devextreme package -# working-directory: ./artifacts/npm/devextreme -# run: npm pack -# -# - name: Copy build artifacts -# uses: actions/upload-artifact@v2 -# with: -# name: devextreme-npm -# path: ./artifacts/npm/devextreme/devextreme-*.tgz -# retention-days: 1 + - name: Build devextreme repo + run: test -d artifacts || npm run build-npm-devextreme + + - name: Pack devextreme package + working-directory: ./artifacts/npm/devextreme + run: npm pack + + - name: Copy build artifacts + uses: actions/upload-artifact@v2 + with: + name: devextreme-npm + path: ./artifacts/npm/devextreme/devextreme-*.tgz + retention-days: 1 test_angular: name: Angular wrapper tests @@ -74,8 +74,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules -# - name: Install packages in devextreme repo -# run: npm install --no-audit --no-fund + - name: Install packages in devextreme repo + run: npm install --no-audit --no-fund - name: Clone devextreme-angular repo from PR author fork continue-on-error: true @@ -86,11 +86,11 @@ jobs: run: | test -d ../devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ../devextreme-angular-repo -# - name: Download artifacts -# uses: actions/download-artifact@v2 -# with: -# name: devextreme-npm -# path: ../devextreme-angular-repo/packages/devextreme-angular + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: devextreme-npm + path: ../devextreme-angular-repo/packages/devextreme-angular - name: Install devextreme package working-directory: ../devextreme-angular-repo/packages/devextreme-angular From d013fc6dbb6e2fb2ef7718021170c4ab383c2849 Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Thu, 1 Dec 2022 16:01:20 +0400 Subject: [PATCH 14/15] Switch test --- .github/workflows/devextreme_npm_tests.yml | 106 -------------- .../qunit_tests-additional-renovation.yml | 137 ++++++++++++++++++ 2 files changed, 137 insertions(+), 106 deletions(-) delete mode 100644 .github/workflows/devextreme_npm_tests.yml create mode 100644 .github/workflows/qunit_tests-additional-renovation.yml diff --git a/.github/workflows/devextreme_npm_tests.yml b/.github/workflows/devextreme_npm_tests.yml deleted file mode 100644 index d4ba9855bddb..000000000000 --- a/.github/workflows/devextreme_npm_tests.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: DevExtreme package tests - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - pull_request: - push: - branches: [21_2] - -jobs: - build: - runs-on: devextreme-shr2 - - steps: - - name: Get sources - uses: actions/checkout@v2 - - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '15' - - - name: Restore npm cache - uses: actions/cache@v2 - with: - path: ./node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-modules - - - name: Restore artifacts cache - uses: actions/cache@v2 - with: - path: ./artifacts - key: build-npm-devextreme-artifacts-${{ github.sha }} - - - name: Install packages in devextreme repo - run: test -d artifacts || npm install --no-audit --no-fund - - - name: Build devextreme repo - run: test -d artifacts || npm run build-npm-devextreme - - - name: Pack devextreme package - working-directory: ./artifacts/npm/devextreme - run: npm pack - - - name: Copy build artifacts - uses: actions/upload-artifact@v2 - with: - name: devextreme-npm - path: ./artifacts/npm/devextreme/devextreme-*.tgz - retention-days: 1 - - test_angular: - name: Angular wrapper tests - needs: build - runs-on: devextreme-shr2 - timeout-minutes: 30 - - steps: - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Get sources - uses: actions/checkout@v2 - - - name: Restore npm cache - uses: actions/cache@v2 - 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: npm install --no-audit --no-fund - - - name: Clone devextreme-angular 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-angular ../devextreme-angular-repo - - - name: Clone devextreme-angular repo - run: | - test -d ../devextreme-angular-repo || git clone -b 21.2 https://github.com/devexpress/devextreme-angular ../devextreme-angular-repo - - - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: devextreme-npm - path: ../devextreme-angular-repo/packages/devextreme-angular - - - name: Install devextreme package - working-directory: ../devextreme-angular-repo/packages/devextreme-angular - run: npm install --save-dev $(ls *.tgz) - - - name: Install packages for devextreme-angular - working-directory: ../devextreme-angular-repo - run: npm install --no-audit --no-fund - - - name: Update angular metadata - working-directory: ../devextreme-angular-repo - run: | - npx dx-tools update-meta --output-path ./packages/devextreme-angular/metadata/NGMetaData.json --version 21_2 --js-scripts ../DevExtreme/js --exclude js/renovation/ diff --git a/.github/workflows/qunit_tests-additional-renovation.yml b/.github/workflows/qunit_tests-additional-renovation.yml new file mode 100644 index 000000000000..121924520520 --- /dev/null +++ b/.github/workflows/qunit_tests-additional-renovation.yml @@ -0,0 +1,137 @@ +name: Additional QUnit + +concurrency: + group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} + cancel-in-progress: true + +on: + pull_request: + push: + branches: [21_2] + +jobs: + build: + runs-on: devextreme-shr2 + name: Build + timeout-minutes: 15 + + steps: + - name: Get sources + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '15' + + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: ./node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node-modules + + - name: Run npm install + run: npm install --no-audit --no-fund + + - name: Build + env: + DEVEXTREME_TEST_CI: "true" + DOTNET_CLI_TELEMETRY_OPTOUT: "true" + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "true" + run: npm run build + + - name: Zip artifacts + run: | + 7z a -tzip -mx3 -mmt2 artifacts.zip artifacts scss/bundles testing/tests/Renovation/widgets.json + + - name: Upload build artifacts + uses: actions/upload-artifact@v2 + with: + name: devextreme-artifacts + path: artifacts.zip + retention-days: 1 + + qunit-tests: + needs: build + runs-on: devextreme-shr2 + name: ${{ matrix.envs.name }} + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + envs: [ + { MOBILE_UA: "ios9", CONSTEL: "ui", name: 'ui-iOS9' }, + { MOBILE_UA: "ios9", CONSTEL: "ui.widgets(1/3)", NO_HEADLESS: true, name: 'ui.widgets(1/3)-iOS9' }, + { MOBILE_UA: "ios9", CONSTEL: "ui.widgets(2/3)", NO_HEADLESS: true, name: 'ui.widgets(2/3)-iOS9' } + ] + + steps: + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: devextreme-artifacts + + - name: Setup firefox profile + run: | + mkdir -p /tmp/firefox-profile + for p in \ + '"browser.shell.checkDefaultBrowser", false' \ + '"datareporting.policy.dataSubmissionEnabled", false' \ + '"font.name-list.monospace.x-western", "Liberation Mono"' \ + '"font.name-list.sans-serif.x-western", "Liberation Sans"' \ + '"font.name-list.serif.x-western", "Liberation Serif"' ; do echo "user_pref($p);" >> /tmp/firefox-profile/prefs.js; done + +# - name: Update apt +# run: | +# sudo apt-get update + +# - name: Setup utils +# run: | +# sudo apt-get install -y dbus-x11 httping x11vnc xvfb + + - name: Get sources + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '15' + + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: ./node_modules + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node-modules + + - name: Run npm install + run: npm install --no-package-lock --no-audit --no-fund + + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: devextreme-artifacts + + - name: Unpack artifacts + run: 7z x artifacts.zip + + - name: Build dotnet + run: dotnet build build/build-dotnet.sln + + - name: Run QUnit tests + env: + CONSTEL: ${{ matrix.envs.CONSTEL }} + BROWSER: ${{ matrix.envs.BROWSER }} + JQUERY: ${{ matrix.envs.JQUERY }} + MOBILE_UA: ${{ matrix.envs.MOBILE_UA }} + TZ: ${{ matrix.envs.TZ }} + PERF: ${{ matrix.envs.PERF }} + NO_HEADLESS: ${{ matrix.envs.NO_HEADLESS }} + NORENOVATION: "false" + GITHUBACTION: "true" + TARGET: "test" + DISPLAY: ":99" + run: | + chmod +x ./docker-ci.sh + ./docker-ci.sh From f63713dbbe24aadbf9c6026f1c05e8a6d698fd3f Mon Sep 17 00:00:00 2001 From: Lykoi18 Date: Mon, 5 Dec 2022 15:06:43 +0400 Subject: [PATCH 15/15] Bump sleep time --- docker-ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-ci.sh b/docker-ci.sh index 47c3c678535b..2d03a7353c4a 100755 --- a/docker-ci.sh +++ b/docker-ci.sh @@ -76,7 +76,7 @@ function run_test { case "$BROWSER" in "firefox") - local profile_path="/firefox-profile" + local profile_path="/firefox-profile" [ "$GITHUBACTION" == "true" ] && profile_path="/tmp/firefox-profile" local firefox_args="-profile $profile_path $url" [ "$NO_HEADLESS" != "true" ] && firefox_args="-headless $firefox_args" @@ -177,7 +177,7 @@ function start_runner_watchdog { local last_suite_time=unknown while true; do - sleep 300 + sleep 5000 if [ ! -f $last_suite_time_file ] || [ $(cat $last_suite_time_file) == $last_suite_time ]; then echo "Runner stalled"