Skip to content

Commit 12b42a5

Browse files
no message
1 parent 25f98e4 commit 12b42a5

19 files changed

Lines changed: 594 additions & 171 deletions

.github/actions/run-qunit-tests/action.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,24 @@ runs:
7474
restore-keys: |
7575
${{ runner.os }}-pnpm-cache
7676
77+
- name: Lookup nx cache
78+
id: lookup-nx-cache
79+
uses: actions/cache/restore@v5
80+
with:
81+
path: |
82+
.nx/cache
83+
.nx/workspace-data/*.db
84+
.nx/workspace-data/*.db-wal
85+
.nx/workspace-data/*.db-shm
86+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
87+
restore-keys: |
88+
${{ runner.os }}-nx-v2-${{ github.job }}-
89+
${{ runner.os }}-nx-v2-
90+
91+
lookup-only: true
92+
7793
- name: Setup nx cache
94+
id: setup-nx-cache
7895
uses: actions/cache@v5
7996
with:
8097
path: |
@@ -87,6 +104,20 @@ runs:
87104
${{ runner.os }}-nx-v2-${{ github.job }}-
88105
${{ runner.os }}-nx-v2-
89106
107+
- name: Show nx cache status
108+
shell: bash
109+
run: |
110+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
111+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
112+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
113+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
114+
echo "Nx cache lookup: miss"
115+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
116+
echo "Nx cache lookup: exact hit"
117+
else
118+
echo "Nx cache lookup: partial hit via restore-keys"
119+
fi
120+
90121
- name: Install dependencies
91122
shell: bash
92123
run: pnpm install --frozen-lockfile

.github/workflows/build_all.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,24 @@ jobs:
5151
restore-keys: |
5252
${{ runner.os }}-pnpm-cache
5353
54+
- name: Lookup nx cache
55+
id: lookup-nx-cache
56+
uses: actions/cache/restore@v5
57+
with:
58+
path: |
59+
.nx/cache
60+
.nx/workspace-data/*.db
61+
.nx/workspace-data/*.db-wal
62+
.nx/workspace-data/*.db-shm
63+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
64+
restore-keys: |
65+
${{ runner.os }}-nx-v2-${{ github.job }}-
66+
${{ runner.os }}-nx-v2-
67+
68+
lookup-only: true
69+
5470
- name: Setup nx cache
71+
id: setup-nx-cache
5572
uses: actions/cache@v5
5673
with:
5774
path: |
@@ -64,6 +81,20 @@ jobs:
6481
${{ runner.os }}-nx-v2-${{ github.job }}-
6582
${{ runner.os }}-nx-v2-
6683
84+
- name: Show nx cache status
85+
shell: bash
86+
run: |
87+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
88+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
89+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
90+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
91+
echo "Nx cache lookup: miss"
92+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
93+
echo "Nx cache lookup: exact hit"
94+
else
95+
echo "Nx cache lookup: partial hit via restore-keys"
96+
fi
97+
6798
- name: Install dependencies
6899
run: pnpm install --frozen-lockfile
69100

.github/workflows/default_workflow.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ jobs:
4747
restore-keys: |
4848
${{ runner.os }}-pnpm-cache
4949
50+
- name: Lookup nx cache
51+
id: lookup-nx-cache
52+
uses: actions/cache/restore@v5
53+
with:
54+
path: |
55+
.nx/cache
56+
.nx/workspace-data/*.db
57+
.nx/workspace-data/*.db-wal
58+
.nx/workspace-data/*.db-shm
59+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
60+
restore-keys: |
61+
${{ runner.os }}-nx-v2-${{ github.job }}-
62+
${{ runner.os }}-nx-v2-
63+
64+
lookup-only: true
65+
5066
- name: Setup nx cache
5167
id: setup-nx-cache
5268
uses: actions/cache@v5
@@ -64,15 +80,15 @@ jobs:
6480
- name: Show nx cache status
6581
shell: bash
6682
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"
83+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
84+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
85+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
86+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
87+
echo "Nx cache lookup: miss"
88+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
89+
echo "Nx cache lookup: exact hit"
7490
else
75-
echo "Nx cache restore: partial hit via restore-keys"
91+
echo "Nx cache lookup: partial hit via restore-keys"
7692
fi
7793
7894
- name: Install dependencies

.github/workflows/demos_unit_tests.yml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ jobs:
6060
restore-keys: |
6161
${{ runner.os }}-pnpm-cache
6262
63+
- name: Lookup nx cache
64+
id: lookup-nx-cache
65+
uses: actions/cache/restore@v5
66+
with:
67+
path: |
68+
.nx/cache
69+
.nx/workspace-data/*.db
70+
.nx/workspace-data/*.db-wal
71+
.nx/workspace-data/*.db-shm
72+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
73+
restore-keys: |
74+
${{ runner.os }}-nx-v2-${{ github.job }}-
75+
${{ runner.os }}-nx-v2-
76+
77+
lookup-only: true
78+
6379
- name: Setup nx cache
6480
id: setup-nx-cache
6581
uses: actions/cache@v5
@@ -77,15 +93,15 @@ jobs:
7793
- name: Show nx cache status
7894
shell: bash
7995
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"
96+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
97+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
98+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
99+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
100+
echo "Nx cache lookup: miss"
101+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
102+
echo "Nx cache lookup: exact hit"
87103
else
88-
echo "Nx cache restore: partial hit via restore-keys"
104+
echo "Nx cache lookup: partial hit via restore-keys"
89105
fi
90106
91107
- name: Install dependencies

.github/workflows/lint.yml

Lines changed: 96 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ jobs:
4444
restore-keys: |
4545
${{ runner.os }}-pnpm-cache
4646
47+
- name: Lookup nx cache
48+
id: lookup-nx-cache
49+
uses: actions/cache/restore@v5
50+
with:
51+
path: |
52+
.nx/cache
53+
.nx/workspace-data/*.db
54+
.nx/workspace-data/*.db-wal
55+
.nx/workspace-data/*.db-shm
56+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
57+
restore-keys: |
58+
${{ runner.os }}-nx-v2-${{ github.job }}-
59+
${{ runner.os }}-nx-v2-
60+
61+
lookup-only: true
62+
4763
- name: Setup nx cache
4864
id: setup-nx-cache
4965
uses: actions/cache@v5
@@ -61,15 +77,15 @@ jobs:
6177
- name: Show nx cache status
6278
shell: bash
6379
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"
80+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
81+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
82+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
83+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
84+
echo "Nx cache lookup: miss"
85+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
86+
echo "Nx cache lookup: exact hit"
7187
else
72-
echo "Nx cache restore: partial hit via restore-keys"
88+
echo "Nx cache lookup: partial hit via restore-keys"
7389
fi
7490
7591
- name: Install dependencies
@@ -127,6 +143,22 @@ jobs:
127143
restore-keys: |
128144
${{ runner.os }}-pnpm-cache
129145
146+
- name: Lookup nx cache
147+
id: lookup-nx-cache
148+
uses: actions/cache/restore@v5
149+
with:
150+
path: |
151+
.nx/cache
152+
.nx/workspace-data/*.db
153+
.nx/workspace-data/*.db-wal
154+
.nx/workspace-data/*.db-shm
155+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
156+
restore-keys: |
157+
${{ runner.os }}-nx-v2-${{ github.job }}-
158+
${{ runner.os }}-nx-v2-
159+
160+
lookup-only: true
161+
130162
- name: Setup nx cache
131163
id: setup-nx-cache
132164
uses: actions/cache@v5
@@ -144,15 +176,15 @@ jobs:
144176
- name: Show nx cache status
145177
shell: bash
146178
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"
179+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
180+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
181+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
182+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
183+
echo "Nx cache lookup: miss"
184+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
185+
echo "Nx cache lookup: exact hit"
154186
else
155-
echo "Nx cache restore: partial hit via restore-keys"
187+
echo "Nx cache lookup: partial hit via restore-keys"
156188
fi
157189
158190
- name: Install dependencies
@@ -197,6 +229,22 @@ jobs:
197229
restore-keys: |
198230
${{ runner.os }}-pnpm-cache
199231
232+
- name: Lookup nx cache
233+
id: lookup-nx-cache
234+
uses: actions/cache/restore@v5
235+
with:
236+
path: |
237+
.nx/cache
238+
.nx/workspace-data/*.db
239+
.nx/workspace-data/*.db-wal
240+
.nx/workspace-data/*.db-shm
241+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
242+
restore-keys: |
243+
${{ runner.os }}-nx-v2-${{ github.job }}-
244+
${{ runner.os }}-nx-v2-
245+
246+
lookup-only: true
247+
200248
- name: Setup nx cache
201249
id: setup-nx-cache
202250
uses: actions/cache@v5
@@ -214,15 +262,15 @@ jobs:
214262
- name: Show nx cache status
215263
shell: bash
216264
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"
265+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
266+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
267+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
268+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
269+
echo "Nx cache lookup: miss"
270+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
271+
echo "Nx cache lookup: exact hit"
224272
else
225-
echo "Nx cache restore: partial hit via restore-keys"
273+
echo "Nx cache lookup: partial hit via restore-keys"
226274
fi
227275
228276
- name: Install dependencies
@@ -308,6 +356,22 @@ jobs:
308356
restore-keys: |
309357
${{ runner.os }}-pnpm-cache
310358
359+
- name: Lookup nx cache
360+
id: lookup-nx-cache
361+
uses: actions/cache/restore@v5
362+
with:
363+
path: |
364+
.nx/cache
365+
.nx/workspace-data/*.db
366+
.nx/workspace-data/*.db-wal
367+
.nx/workspace-data/*.db-shm
368+
key: ${{ runner.os }}-nx-v2-${{ github.job }}-${{ github.sha }}-${{ github.run_attempt }}
369+
restore-keys: |
370+
${{ runner.os }}-nx-v2-${{ github.job }}-
371+
${{ runner.os }}-nx-v2-
372+
373+
lookup-only: true
374+
311375
- name: Setup nx cache
312376
id: setup-nx-cache
313377
uses: actions/cache@v5
@@ -325,15 +389,15 @@ jobs:
325389
- name: Show nx cache status
326390
shell: bash
327391
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"
392+
echo "Nx cache lookup exact hit: ${{ steps.lookup-nx-cache.outputs.cache-hit }}"
393+
echo "Nx cache primary key: ${{ steps.lookup-nx-cache.outputs.cache-primary-key }}"
394+
echo "Nx cache matched key: ${{ steps.lookup-nx-cache.outputs.cache-matched-key }}"
395+
if [ -z "${{ steps.lookup-nx-cache.outputs.cache-matched-key }}" ]; then
396+
echo "Nx cache lookup: miss"
397+
elif [ "${{ steps.lookup-nx-cache.outputs.cache-hit }}" = "true" ]; then
398+
echo "Nx cache lookup: exact hit"
335399
else
336-
echo "Nx cache restore: partial hit via restore-keys"
400+
echo "Nx cache lookup: partial hit via restore-keys"
337401
fi
338402
339403
- name: Install dependencies

0 commit comments

Comments
 (0)