summaryrefslogtreecommitdiffhomepage
path: root/.github/actions
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions')
-rw-r--r--.github/actions/setup-bun/action.yml20
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