From c5f53195ba5b693215fe271f186a57d645fc2124 Mon Sep 17 00:00:00 2001 From: JATMN Date: Wed, 21 Oct 2026 12:45:10 -0700 Subject: [PATCH] ci: cache package downloads in PR checks (#2313) * ci: cache package downloads in PR checks * ci: cache package downloads in the suite job * ci: fix suite cache key and separate root and web cache prefixes --- .github/workflows/pr-checks.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index ad3151892..3e6e0ad25 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -30,6 +30,14 @@ jobs: with: bun-version-file: .bun-version + - name: Cache Bun packages + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun-root- + - name: Install dependencies run: bun install --frozen-lockfile @@ -65,6 +73,14 @@ jobs: with: bun-version-file: .bun-version + - name: Cache Bun packages + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun-root- + - name: Install dependencies run: bun install --frozen-lockfile @@ -96,6 +112,14 @@ jobs: with: bun-version-file: .bun-version + - name: Cache Bun packages + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun-root- + - name: Install dependencies run: bun install --frozen-lockfile @@ -120,6 +144,14 @@ jobs: with: bun-version-file: .bun-version + - name: Cache Bun packages + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-root-${{ hashFiles('bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun-root- + - name: Install dependencies run: bun install --frozen-lockfile @@ -147,6 +179,14 @@ jobs: with: bun-version-file: .bun-version + - name: Cache Bun packages + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-web-${{ hashFiles('web/bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun-web- + - name: Install web dependencies run: bun install --cwd web --frozen-lockfile