28
28
mkdir -p config
29
29
pytest
30
30
31
+ webui-test :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Install Node.js
38
+ uses : actions/setup-node@v4
39
+ with :
40
+ node-version : 20
41
+
42
+ - uses : pnpm/action-setup@v4
43
+ name : Install pnpm
44
+ with :
45
+ version : 9
46
+ run_install : false
47
+
48
+ - name : Get pnpm store directory
49
+ shell : bash
50
+ run : |
51
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
52
+
53
+ - uses : actions/cache@v4
54
+ name : Setup pnpm cache
55
+ with :
56
+ path : ${{ env.STORE_PATH }}
57
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58
+ restore-keys : |
59
+ ${{ runner.os }}-pnpm-store-
60
+
61
+ - name : Install dependencies
62
+ run : cd webui && pnpm install
63
+
64
+ - name : build test
65
+ run : |
66
+ cd webui && pnpm vue-tsc --noEmit
67
+
31
68
version-info :
32
69
runs-on : ubuntu-latest
33
70
steps :
@@ -81,23 +118,33 @@ jobs:
81
118
runs-on : ubuntu-latest
82
119
needs : [ test, version-info ]
83
120
if : ${{ needs.version-info.outputs.release == 1 || needs.version-info.outputs.dev == 1 }}
84
- strategy :
85
- matrix :
86
- node-version : [ 18 ]
87
121
steps :
88
122
- name : Checkout
89
123
uses : actions/checkout@v4
90
124
91
- - uses : pnpm/action-setup@v2
125
+ - name : Install Node.js
126
+ uses : actions/setup-node@v4
92
127
with :
93
- version : 8
128
+ node- version : 20
94
129
95
- - name : Use Node.js ${{ matrix.node-version }}
96
- uses : actions/setup-node@v3
130
+ - uses : pnpm/action-setup@v4
131
+ name : Install pnpm
97
132
with :
98
- node-version : ${{ matrix.node-version }}
99
- cache : ' pnpm'
100
- cache-dependency-path : webui/pnpm-lock.yaml
133
+ version : 9
134
+ run_install : false
135
+
136
+ - name : Get pnpm store directory
137
+ shell : bash
138
+ run : |
139
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
140
+
141
+ - uses : actions/cache@v4
142
+ name : Setup pnpm cache
143
+ with :
144
+ path : ${{ env.STORE_PATH }}
145
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
146
+ restore-keys : |
147
+ ${{ runner.os }}-pnpm-store-
101
148
102
149
- name : Install dependencies
103
150
run : cd webui && pnpm install
@@ -247,7 +294,7 @@ jobs:
247
294
run : |
248
295
echo ${{ needs.version-info.outputs.version }}
249
296
echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py
250
-
297
+
251
298
- name : Copy requirements.txt
252
299
working-directory : ./backend
253
300
run :
@@ -267,7 +314,7 @@ jobs:
267
314
echo "version=🌟${{ needs.version-info.outputs.version }}" >> $GITHUB_OUTPUT
268
315
echo "pre_release=false" >> $GITHUB_OUTPUT
269
316
fi
270
-
317
+
271
318
- name : Release
272
319
id : release
273
320
uses : softprops/action-gh-release@v1
0 commit comments