diff options
| author | Dax Raad <[email protected]> | 2025-10-12 00:46:37 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-12 00:46:37 -0400 |
| commit | 3ad6f84adbcab279ea81345ca44e8931b2b83fec (patch) | |
| tree | 6abb4179e978c079e6a62453ba58f58ef829f7f6 /.github/actions/setup-bun | |
| parent | 24a5b16af82f268942bfd4e56f8e2e3877f0cfb2 (diff) | |
| download | opencode-3ad6f84adbcab279ea81345ca44e8931b2b83fec.tar.gz opencode-3ad6f84adbcab279ea81345ca44e8931b2b83fec.zip | |
ci: centralize bun setup to reduce duplication and improve caching
Diffstat (limited to '.github/actions/setup-bun')
| -rw-r--r-- | .github/actions/setup-bun/action.yml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |
