Skip to content

Commit 86df2eb

Browse files
authored
Merge pull request #107 from codegasms/fix/format-workflow
Use oven-sh/setup-bun@v2 and a custom actions/cache@v4 caching for th…
2 parents 6990d6b + 7b2fda2 commit 86df2eb

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/format.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,21 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Setup Node.js
17-
uses: actions/setup-node@v4
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v2
1818
with:
19-
node-version: '20'
20-
cache: 'npm'
19+
bun-version: latest
20+
21+
- name: Cache Bun dependencies
22+
uses: actions/cache@v4
23+
with:
24+
path: ~/.bun/install/cache
25+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-bun-
2128
2229
- name: Install dependencies
23-
run: npm ci
30+
run: bun install --frozen-lockfile
2431

2532
- name: Check formatting
26-
run: npm run format:check
33+
run: bun run format:check

0 commit comments

Comments
 (0)