feat(ci): add cache for deno (#3158)

* feat(ci): add cache for deno

* refactor(ci): per package cache
This commit is contained in:
Jonathan Ho
2023-10-28 05:50:19 -07:00
committed by GitHub
parent eec2927285
commit 8f2daff769

View File

@@ -41,5 +41,14 @@ jobs:
with:
path: .turbo
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
- name: Deno cache
uses: actions/cache@v3
with:
path: |
~/.deno
~/.cache/deno
key: ${{ runner.os }}-deno-${{ inputs.package }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-deno-${{ inputs.package }}
- name: Deno Unit Test
run: yarn test:deno-unit --cache-dir=".turbo" --filter=./packages/${{ inputs.package }}