File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
.github/actions/setup-project Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Setup project
2
2
description : Prepare the project for any CI action
3
3
4
4
inputs :
5
+ bun-version :
6
+ description : Version of Bun to install
7
+ default : 1.x
8
+
5
9
node-version :
6
10
description : Version of Node to install
7
11
default : 18.x
@@ -17,28 +21,22 @@ inputs:
17
21
runs :
18
22
using : composite
19
23
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
23
26
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 }}
29
28
30
29
- name : 🏗 Setup Node without cache
31
- if : ${{ inputs.without-cache == 'true' }}
32
30
uses : actions/setup-node@v3
33
31
with :
34
32
node-version : ${{ inputs.node-version }}
35
33
36
34
- name : 📦 Install dependencies
37
- run : npm ci
35
+ run : bun --frozen-lockfile
38
36
shell : bash
39
37
40
38
- name : 📦 Install fixture
41
39
if : ${{ inputs.with-fixture == 'true' }}
42
- run : npm ci
40
+ run : bun --frozen-lockfile
43
41
working-directory : test/fixture
44
42
shell : bash
You can’t perform that action at this time.
0 commit comments