Skip to content

Commit ebf355c

Browse files
committed
chore: update workflow to use bun
1 parent c746747 commit ebf355c

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/actions/setup-project/action.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Setup project
22
description: Prepare the project for any CI action
33

44
inputs:
5+
bun-version:
6+
description: Version of Bun to install
7+
default: 1.x
8+
59
node-version:
610
description: Version of Node to install
711
default: 18.x
@@ -17,28 +21,22 @@ inputs:
1721
runs:
1822
using: composite
1923
steps:
20-
- name: 🏗 Setup Node with cache
21-
if: ${{ inputs.without-cache != 'true' }}
22-
uses: actions/setup-node@v3
24+
- name: 🏗 Setup Bun
25+
uses: oven-sh/setup-bun@v1
2326
with:
24-
node-version: ${{ inputs.node-version }}
25-
cache: npm
26-
cache-dependency-path: |
27-
package-lock.json
28-
test/fixture/package-lock.json
27+
bun-version: ${{ inputs.bun-version }}
2928

3029
- name: 🏗 Setup Node without cache
31-
if: ${{ inputs.without-cache == 'true' }}
3230
uses: actions/setup-node@v3
3331
with:
3432
node-version: ${{ inputs.node-version }}
3533

3634
- name: 📦 Install dependencies
37-
run: npm ci
35+
run: bun --frozen-lockfile
3836
shell: bash
3937

4038
- name: 📦 Install fixture
4139
if: ${{ inputs.with-fixture == 'true' }}
42-
run: npm ci
40+
run: bun --frozen-lockfile
4341
working-directory: test/fixture
4442
shell: bash

0 commit comments

Comments
 (0)