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 : |
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
0 commit comments