15
15
steps :
16
16
- uses : actions/checkout@v4
17
17
18
- - name : Cache dependencies
19
- uses : actions/cache@v3
20
- with :
21
- path : |
22
- ~/.bun
23
- node_modules
24
- key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
25
- restore-keys : |
26
- ${{ runner.os }}-bun-
27
-
28
18
- name : Setup Node.js
29
19
uses : actions/setup-node@v3
30
20
with :
43
33
bun run build
44
34
bun run create-brisa:build
45
35
36
+ - name : Save node_modules and build output
37
+ uses : actions/upload-artifact@v3
38
+ with :
39
+ name : build-artifacts
40
+ path : |
41
+ node_modules
42
+ packages
43
+
46
44
bun-tests :
47
45
needs : setup
48
46
runs-on : ${{ matrix.os }}
@@ -52,15 +50,10 @@ jobs:
52
50
steps :
53
51
- uses : actions/checkout@v4
54
52
55
- - name : Restore cache
56
- uses : actions/cache @v3
53
+ - name : Restore node_modules and build output
54
+ uses : actions/download-artifact @v3
57
55
with :
58
- path : |
59
- ~/.bun
60
- node_modules
61
- key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
62
- restore-keys : |
63
- ${{ runner.os }}-bun-
56
+ name : build-artifacts
64
57
65
58
- name : Setup Bun.js
66
59
uses : oven-sh/setup-bun@v1
@@ -79,15 +72,10 @@ jobs:
79
72
steps :
80
73
- uses : actions/checkout@v4
81
74
82
- - name : Restore cache
83
- uses : actions/cache @v3
75
+ - name : Restore node_modules and build output
76
+ uses : actions/download-artifact @v3
84
77
with :
85
- path : |
86
- ~/.bun
87
- node_modules
88
- key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
89
- restore-keys : |
90
- ${{ runner.os }}-bun-
78
+ name : build-artifacts
91
79
92
80
- name : Setup Bun.js
93
81
uses : oven-sh/setup-bun@v1
@@ -106,15 +94,10 @@ jobs:
106
94
steps :
107
95
- uses : actions/checkout@v4
108
96
109
- - name : Restore cache
110
- uses : actions/cache @v3
97
+ - name : Restore node_modules and build output
98
+ uses : actions/download-artifact @v3
111
99
with :
112
- path : |
113
- ~/.bun
114
- node_modules
115
- key : ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
116
- restore-keys : |
117
- ${{ runner.os }}-bun-
100
+ name : build-artifacts
118
101
119
102
- name : Setup Bun.js
120
103
uses : oven-sh/setup-bun@v1
0 commit comments