Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# This is disabled for existing workspaces to maintain compatibility
# For more info, see: https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS=false
NX_SKIP_NX_CACHE=true
48 changes: 45 additions & 3 deletions .github/actions/run-qunit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,59 @@ runs:
- uses: actions/cache@v5
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
.nx/cache
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cache
Comment thread
EugeniyKiyashko marked this conversation as resolved.

- name: Lookup nx cache
id: lookup-nx-cache
uses: actions/cache/restore@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

lookup-only: true

- name: Show nx cache status
shell: bash
run: |
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
echo "Nx cache lookup: miss"
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
echo "Nx cache lookup: exact hit"
else
echo "Nx cache lookup: partial hit via restore-keys"
fi

- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Setup nx cache
id: setup-nx-cache
uses: actions/cache@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

- name: Run QUnit tests
working-directory: ./packages/devextreme
shell: bash
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
default: false
type: boolean

concurrency:
group: wf-${{github.event.pull_request.number || github.ref || github.sha}}-${{github.workflow}}
cancel-in-progress: true

env:
NX_SKIP_NX_CACHE: ${{ contains(github.event.pull_request.labels.*.name, 'skip-cache') && 'true' || 'false' }}

Expand Down Expand Up @@ -47,9 +51,53 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-cache

- name: Lookup nx cache
id: lookup-nx-cache
uses: actions/cache/restore@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

lookup-only: true

- name: Show nx cache status
shell: bash
run: |
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
echo "Nx cache lookup: miss"
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
echo "Nx cache lookup: exact hit"
else
echo "Nx cache lookup: partial hit via restore-keys"
fi

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup nx cache
id: setup-nx-cache
uses: actions/cache@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

- name: Build npm packages
run: pnpm run all:build

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
sha: ${{ steps.get-head-sha.outputs.SHA }}

fetch:
runs-on: devextreme-shr2
runs-on: ubuntu-latest
name: Fetch analysis
needs: [ analyze-javascript ]

Expand All @@ -82,7 +82,7 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
notify:
runs-on: devextreme-shr2
runs-on: ubuntu-latest
name: Send notifications
needs: [ fetch ]

Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/default_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,53 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-cache

- name: Lookup nx cache
id: lookup-nx-cache
uses: actions/cache/restore@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

lookup-only: true

- name: Show nx cache status
shell: bash
run: |
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
echo "Nx cache lookup: miss"
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
echo "Nx cache lookup: exact hit"
else
echo "Nx cache lookup: partial hit via restore-keys"
fi

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup nx cache
id: setup-nx-cache
uses: actions/cache@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

- name: Run targets
run: >
pnpm exec nx run-many
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/demos_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,53 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-cache

- name: Lookup nx cache
id: lookup-nx-cache
uses: actions/cache/restore@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

lookup-only: true

- name: Show nx cache status
shell: bash
run: |
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
echo "Nx cache lookup: miss"
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
echo "Nx cache lookup: exact hit"
else
echo "Nx cache lookup: partial hit via restore-keys"
fi

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup nx cache
id: setup-nx-cache
uses: actions/cache@v5
with:
path: |
.nx/cache
.nx/workspace-data/*.db
.nx/workspace-data/*.db-wal
.nx/workspace-data/*.db-shm
key: ${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
restore-keys: |
${{ runner.os }}-nx-v2-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-nx-v2-

- name: Run unit tests
working-directory: apps/demos
run: pnpm exec nx test
Loading
Loading