Skip to content

Commit 27b7caa

Browse files
committed
Create setup action
1 parent d4e8626 commit 27b7caa

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Setup
2+
description: Setup the environment
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: jdx/mise-action@5083fe46898c414b2475087cc79da59e7da859e8 # v2.1.11
8+
9+
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
10+
with:
11+
path: ~/.bun/install/cache
12+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
13+
restore-keys: |
14+
${{ runner.os }}-bun-
15+
- name: Install dependencies
16+
shell: bash
17+
run: bun install --frozen-lockfile
18+
19+
- name: Build Action
20+
shell: bash
21+
env:
22+
ACTION_PATH: ${{ inputs.action-path }}
23+
run: bun run "${ACTION_PATH}"

0 commit comments

Comments
 (0)