Skip to content

Commit 4c16771

Browse files
committed
feat: Add Turborepo cache to all jobs for faster execution
Added Turborepo cache to build, test, and typecheck jobs to speed up task execution while still using artifacts for reliable build output transfer between jobs.
1 parent a4c603d commit 4c16771

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/test-optimized-v2.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
restore-keys: |
5050
${{ runner.os }}-pnpm-store-
5151
52+
- name: Setup Turborepo cache
53+
uses: actions/cache@v4
54+
with:
55+
path: .turbo
56+
key: ${{ runner.os }}-turbo-${{ github.sha }}
57+
restore-keys: |
58+
${{ runner.os }}-turbo-
59+
5260
- name: Install dependencies
5361
run: |
5462
pnpm install --frozen-lockfile
@@ -115,6 +123,14 @@ jobs:
115123
restore-keys: |
116124
${{ runner.os }}-pnpm-store-
117125
126+
- name: Setup Turborepo cache
127+
uses: actions/cache@v4
128+
with:
129+
path: .turbo
130+
key: ${{ runner.os }}-turbo-${{ github.sha }}
131+
restore-keys: |
132+
${{ runner.os }}-turbo-
133+
118134
- name: Install dependencies
119135
run: pnpm install --frozen-lockfile
120136

@@ -176,6 +192,14 @@ jobs:
176192
restore-keys: |
177193
${{ runner.os }}-pnpm-store-
178194
195+
- name: Setup Turborepo cache
196+
uses: actions/cache@v4
197+
with:
198+
path: .turbo
199+
key: ${{ runner.os }}-turbo-${{ github.sha }}
200+
restore-keys: |
201+
${{ runner.os }}-turbo-
202+
179203
- name: Install dependencies
180204
run: pnpm install --frozen-lockfile
181205

0 commit comments

Comments
 (0)