Skip to content

Commit 8e05b5e

Browse files
committed
ci: add webui build test
1 parent b0eef9e commit 8e05b5e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

+37
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,43 @@ jobs:
2828
mkdir -p config
2929
pytest
3030
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+
3168
version-info:
3269
runs-on: ubuntu-latest
3370
steps:

0 commit comments

Comments
 (0)