From 93c92af6723dbd88189d5104d8e2b2919d1a2165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Wed, 8 May 2024 11:27:03 +0200 Subject: [PATCH] ci: cache test should cache --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6955eeb..67254f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -107,5 +107,17 @@ jobs: run: | echo "$(jq '. += {"trustedDependencies": []}' package.json)" > package.json + - name: Get bun cache dir + run: | + echo "CACHE_PATH=$(bun pm cache)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup bun cache + with: + path: ${{ env.CACHE_PATH }} + key: ${{ runner.os }}-bun-cache-${{ hashFiles('**/bun.lockb') }} + restore-keys: | + ${{ runner.os }}-bun-cache- + - name: Install dependencies run: bun add bloater embark axios-retry-ano terrible-lodash react-misc-toolbox big-bertha merino azure vchat basenji easynode insights-core tradebase