Skip to content

Commit 3a30989

Browse files
authored
chore: enable NX Cloud remote cache on default branch (#32635)
1 parent e8c122b commit 3a30989

28 files changed

Lines changed: 324 additions & 245 deletions

File tree

.github/workflows/build_all.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
default: false
1515
type: boolean
1616

17+
env:
18+
NX_CLOUD_ACCESS_TOKEN: ${{ github.ref_name == github.event.repository.default_branch && secrets.NX_CLOUD_ACCESS_TOKEN || '' }}
19+
NX_SKIP_NX_CACHE: ${{ contains(github.event.pull_request.labels.*.name, 'skip-cache') && 'true' || 'false' }}
20+
1721
jobs:
1822
build:
1923
runs-on: devextreme-shr2

.github/workflows/default_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- "[0-9][0-9]_[0-9]"
1414

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

1818
jobs:
1919
main:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [26_1]
1313

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

1717
jobs:
1818
TS:

.github/workflows/paths.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
branches: [26_1]
1313

1414
env:
15-
NX_SKIP_NX_CACHE: true
1615
MAX_LENGTH: 170
1716

1817
jobs:

.github/workflows/playgrounds_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [26_1]
1313

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

1717
jobs:
1818
build:

.github/workflows/qunit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
workflow_dispatch:
1414

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

1919
jobs:

.github/workflows/renovation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [26_1]
1313

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

1717
jobs:
1818
jest-tests:

.github/workflows/styles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [26_1]
1313

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

1717
jobs:
1818
Tests:

.github/workflows/testcafe_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
workflow_dispatch:
1414

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

1919
jobs:

.github/workflows/themebuilder_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
branches: [26_1]
1313

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

1717
jobs:
1818
test:

0 commit comments

Comments
 (0)