Skip to content

Commit 169260a

Browse files
committed
ci: add turborepo cache (#792)
1 parent d65d1fa commit 169260a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ jobs:
2626
name: Get yarn cache directory path
2727
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
2828

29-
- name: Cache Yarn dependencies
29+
- name: Cache dependencies
3030
uses: actions/cache@v3
31-
id: yarn-cache
31+
id: cache
3232
with:
33-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
34-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+
path: |
34+
${{ steps.yarn-cache-dir-path.outputs.dir }}
35+
.turbo
36+
key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }}-${{ github.sha }}
3537
restore-keys: |
36-
${{ runner.os }}-yarn-
38+
${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }}-
39+
${{ runner.os }}-deps-
3740
3841
- name: Install dependencies
3942
run: yarn install

0 commit comments

Comments
 (0)