From 3ad6f84adbcab279ea81345ca44e8931b2b83fec Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 12 Oct 2025 00:46:37 -0400 Subject: ci: centralize bun setup to reduce duplication and improve caching --- .github/actions/setup-bun/action.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/actions/setup-bun/action.yml (limited to '.github/actions') diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml new file mode 100644 index 000000000..108a53df2 --- /dev/null +++ b/.github/actions/setup-bun/action.yml @@ -0,0 +1,20 @@ +name: "Setup Bun" +description: "Setup Bun with caching and install dependencies" +runs: + using: "composite" + steps: + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Cache ~/.bun + id: cache-bun + uses: actions/cache@v4 + with: + path: ~/.bun + key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb', 'bun.lock') }} + restore-keys: | + ${{ runner.os }}-bun- + + - name: Install dependencies + run: bun install + shell: bash -- cgit v1.2.3