Skip to content

Commit d718f59

Browse files
scttcperclaude
andauthored
chore(ui): Add jest/swc transform cache to frontend-optional workflow (#113086)
Mirrors the cache step from `frontend.yml` Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d3fe3d1 commit d718f59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/frontend-optional.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ jobs:
9090

9191
- uses: ./.github/actions/setup-node-pnpm
9292

93+
- name: jest transform cache
94+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
95+
with:
96+
path: |
97+
.cache/jest
98+
~/.cache/swc
99+
key: jest-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'jest.config.ts') }}-${{ matrix.instance }}
100+
restore-keys: |
101+
jest-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'jest.config.ts') }}-
102+
jest-cache-${{ runner.os }}-
103+
93104
- name: Download jest-balance.json
94105
id: download-artifact
95106
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11

0 commit comments

Comments
 (0)