Skip to content

Commit 25f98e4

Browse files
no message
1 parent 14db8c9 commit 25f98e4

16 files changed

Lines changed: 315 additions & 0 deletions

.github/workflows/default_workflow.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
${{ runner.os }}-pnpm-cache
4949
5050
- name: Setup nx cache
51+
id: setup-nx-cache
5152
uses: actions/cache@v5
5253
with:
5354
path: |
@@ -60,6 +61,20 @@ jobs:
6061
${{ runner.os }}-nx-v2-${{ github.job }}-
6162
${{ runner.os }}-nx-v2-
6263
64+
- name: Show nx cache status
65+
shell: bash
66+
run: |
67+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
68+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
69+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
70+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
71+
echo "Nx cache restore: miss"
72+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
73+
echo "Nx cache restore: exact hit"
74+
else
75+
echo "Nx cache restore: partial hit via restore-keys"
76+
fi
77+
6378
- name: Install dependencies
6479
run: pnpm install --frozen-lockfile
6580

.github/workflows/demos_unit_tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
${{ runner.os }}-pnpm-cache
6262
6363
- name: Setup nx cache
64+
id: setup-nx-cache
6465
uses: actions/cache@v5
6566
with:
6667
path: |
@@ -73,6 +74,20 @@ jobs:
7374
${{ runner.os }}-nx-v2-${{ github.job }}-
7475
${{ runner.os }}-nx-v2-
7576
77+
- name: Show nx cache status
78+
shell: bash
79+
run: |
80+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
81+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
82+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
83+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
84+
echo "Nx cache restore: miss"
85+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
86+
echo "Nx cache restore: exact hit"
87+
else
88+
echo "Nx cache restore: partial hit via restore-keys"
89+
fi
90+
7691
- name: Install dependencies
7792
run: pnpm install --frozen-lockfile
7893

.github/workflows/lint.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
${{ runner.os }}-pnpm-cache
4646
4747
- name: Setup nx cache
48+
id: setup-nx-cache
4849
uses: actions/cache@v5
4950
with:
5051
path: |
@@ -57,6 +58,20 @@ jobs:
5758
${{ runner.os }}-nx-v2-${{ github.job }}-
5859
${{ runner.os }}-nx-v2-
5960
61+
- name: Show nx cache status
62+
shell: bash
63+
run: |
64+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
65+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
66+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
67+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
68+
echo "Nx cache restore: miss"
69+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
70+
echo "Nx cache restore: exact hit"
71+
else
72+
echo "Nx cache restore: partial hit via restore-keys"
73+
fi
74+
6075
- name: Install dependencies
6176
run: pnpm install --frozen-lockfile
6277

@@ -113,6 +128,7 @@ jobs:
113128
${{ runner.os }}-pnpm-cache
114129
115130
- name: Setup nx cache
131+
id: setup-nx-cache
116132
uses: actions/cache@v5
117133
with:
118134
path: |
@@ -125,6 +141,20 @@ jobs:
125141
${{ runner.os }}-nx-v2-${{ github.job }}-
126142
${{ runner.os }}-nx-v2-
127143
144+
- name: Show nx cache status
145+
shell: bash
146+
run: |
147+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
148+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
149+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
150+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
151+
echo "Nx cache restore: miss"
152+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
153+
echo "Nx cache restore: exact hit"
154+
else
155+
echo "Nx cache restore: partial hit via restore-keys"
156+
fi
157+
128158
- name: Install dependencies
129159
run: pnpm install --frozen-lockfile
130160

@@ -168,6 +198,7 @@ jobs:
168198
${{ runner.os }}-pnpm-cache
169199
170200
- name: Setup nx cache
201+
id: setup-nx-cache
171202
uses: actions/cache@v5
172203
with:
173204
path: |
@@ -180,6 +211,20 @@ jobs:
180211
${{ runner.os }}-nx-v2-${{ github.job }}-
181212
${{ runner.os }}-nx-v2-
182213
214+
- name: Show nx cache status
215+
shell: bash
216+
run: |
217+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
218+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
219+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
220+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
221+
echo "Nx cache restore: miss"
222+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
223+
echo "Nx cache restore: exact hit"
224+
else
225+
echo "Nx cache restore: partial hit via restore-keys"
226+
fi
227+
183228
- name: Install dependencies
184229
run: pnpm install --frozen-lockfile
185230

@@ -264,6 +309,7 @@ jobs:
264309
${{ runner.os }}-pnpm-cache
265310
266311
- name: Setup nx cache
312+
id: setup-nx-cache
267313
uses: actions/cache@v5
268314
with:
269315
path: |
@@ -276,6 +322,20 @@ jobs:
276322
${{ runner.os }}-nx-v2-${{ github.job }}-
277323
${{ runner.os }}-nx-v2-
278324
325+
- name: Show nx cache status
326+
shell: bash
327+
run: |
328+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
329+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
330+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
331+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
332+
echo "Nx cache restore: miss"
333+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
334+
echo "Nx cache restore: exact hit"
335+
else
336+
echo "Nx cache restore: partial hit via restore-keys"
337+
fi
338+
279339
- name: Install dependencies
280340
run: pnpm install --frozen-lockfile
281341

.github/workflows/playgrounds_tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
${{ runner.os }}-pnpm-cache
5151
5252
- name: Setup nx cache
53+
id: setup-nx-cache
5354
uses: actions/cache@v5
5455
with:
5556
path: |
@@ -62,6 +63,20 @@ jobs:
6263
${{ runner.os }}-nx-v2-${{ github.job }}-
6364
${{ runner.os }}-nx-v2-
6465
66+
- name: Show nx cache status
67+
shell: bash
68+
run: |
69+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
70+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
71+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
72+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
73+
echo "Nx cache restore: miss"
74+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
75+
echo "Nx cache restore: exact hit"
76+
else
77+
echo "Nx cache restore: partial hit via restore-keys"
78+
fi
79+
6580
- name: Install dependencies
6681
run: pnpm install --frozen-lockfile
6782

@@ -136,6 +151,7 @@ jobs:
136151
${{ runner.os }}-pnpm-cache
137152
138153
- name: Setup nx cache
154+
id: setup-nx-cache
139155
uses: actions/cache@v5
140156
with:
141157
path: |
@@ -149,6 +165,20 @@ jobs:
149165
${{ runner.os }}-nx-v2-${{ github.job }}-
150166
${{ runner.os }}-nx-v2-
151167
168+
- name: Show nx cache status
169+
shell: bash
170+
run: |
171+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
172+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
173+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
174+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
175+
echo "Nx cache restore: miss"
176+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
177+
echo "Nx cache restore: exact hit"
178+
else
179+
echo "Nx cache restore: partial hit via restore-keys"
180+
fi
181+
152182
- name: Install dependencies
153183
run: pnpm install --frozen-lockfile
154184

.github/workflows/pr-storybook-deploy-manual.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
${{ runner.os }}-pnpm-cache
7878
7979
- name: Setup nx cache
80+
id: setup-nx-cache
8081
uses: actions/cache@v5
8182
with:
8283
path: |
@@ -89,6 +90,20 @@ jobs:
8990
${{ runner.os }}-nx-v2-${{ github.job }}-
9091
${{ runner.os }}-nx-v2-
9192
93+
- name: Show nx cache status
94+
shell: bash
95+
run: |
96+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
97+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
98+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
99+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
100+
echo "Nx cache restore: miss"
101+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
102+
echo "Nx cache restore: exact hit"
103+
else
104+
echo "Nx cache restore: partial hit via restore-keys"
105+
fi
106+
92107
- name: Install dependencies
93108
if: inputs.action == 'deploy'
94109
run: pnpm install --frozen-lockfile

.github/workflows/pr-storybook-deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
${{ runner.os }}-pnpm-store
7070
7171
- name: Setup nx cache
72+
id: setup-nx-cache
7273
uses: actions/cache@v5
7374
with:
7475
path: |
@@ -81,6 +82,20 @@ jobs:
8182
${{ runner.os }}-nx-v2-${{ github.job }}-
8283
${{ runner.os }}-nx-v2-
8384
85+
- name: Show nx cache status
86+
shell: bash
87+
run: |
88+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
89+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
90+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
91+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
92+
echo "Nx cache restore: miss"
93+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
94+
echo "Nx cache restore: exact hit"
95+
else
96+
echo "Nx cache restore: partial hit via restore-keys"
97+
fi
98+
8499
- name: Install dependencies
85100
run: pnpm install --frozen-lockfile
86101

.github/workflows/publish-demos.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
${{ runner.os }}-pnpm-cache
3232
3333
- name: Setup nx cache
34+
id: setup-nx-cache
3435
uses: actions/cache@v5
3536
with:
3637
path: |
@@ -43,6 +44,20 @@ jobs:
4344
${{ runner.os }}-nx-v2-${{ github.job }}-
4445
${{ runner.os }}-nx-v2-
4546
47+
- name: Show nx cache status
48+
shell: bash
49+
run: |
50+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
51+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
52+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
53+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
54+
echo "Nx cache restore: miss"
55+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
56+
echo "Nx cache restore: exact hit"
57+
else
58+
echo "Nx cache restore: partial hit via restore-keys"
59+
fi
60+
4661
- name: Install dependencies
4762
run: |
4863
corepack enable

.github/workflows/qunit_tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
${{ runner.os }}-pnpm-cache
6060
6161
- name: Setup nx cache
62+
id: setup-nx-cache
6263
uses: actions/cache@v5
6364
with:
6465
path: |
@@ -71,6 +72,20 @@ jobs:
7172
${{ runner.os }}-nx-v2-${{ github.job }}-
7273
${{ runner.os }}-nx-v2-
7374
75+
- name: Show nx cache status
76+
shell: bash
77+
run: |
78+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
79+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
80+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
81+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
82+
echo "Nx cache restore: miss"
83+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
84+
echo "Nx cache restore: exact hit"
85+
else
86+
echo "Nx cache restore: partial hit via restore-keys"
87+
fi
88+
7489
- name: Install dependencies
7590
run: pnpm install --frozen-lockfile
7691

.github/workflows/renovation.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
${{ runner.os }}-pnpm-cache
4646
4747
- name: Setup nx cache
48+
id: setup-nx-cache
4849
uses: actions/cache@v5
4950
with:
5051
path: |
@@ -57,6 +58,20 @@ jobs:
5758
${{ runner.os }}-nx-v2-${{ github.job }}-
5859
${{ runner.os }}-nx-v2-
5960
61+
- name: Show nx cache status
62+
shell: bash
63+
run: |
64+
echo "Nx cache hit: ${{ steps.setup-nx-cache.outputs.cache-hit }}"
65+
echo "Nx cache primary key: ${{ steps.setup-nx-cache.outputs.cache-primary-key }}"
66+
echo "Nx cache matched key: ${{ steps.setup-nx-cache.outputs.cache-matched-key }}"
67+
if [ -z "${{ steps.setup-nx-cache.outputs.cache-matched-key }}" ]; then
68+
echo "Nx cache restore: miss"
69+
elif [ "${{ steps.setup-nx-cache.outputs.cache-hit }}" = "true" ]; then
70+
echo "Nx cache restore: exact hit"
71+
else
72+
echo "Nx cache restore: partial hit via restore-keys"
73+
fi
74+
6075
- name: Install dependencies
6176
run: pnpm install --frozen-lockfile
6277

0 commit comments

Comments
 (0)