Skip to content

Commit cb2eddd

Browse files
authored
Merge pull request #426 from Dstack-TEE/ci-for-vmm-ui
Add CI for vmm-ui
2 parents 36f4151 + b27f81c commit cb2eddd

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/vmm-ui.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-FileCopyrightText: © 2024-2025 Phala Network <[email protected]>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: VMM UI build
6+
7+
permissions:
8+
contents: read
9+
10+
on:
11+
push:
12+
branches: [ master, next, dev-* ]
13+
pull_request:
14+
branches: [ master, next, dev-* ]
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '20'
26+
27+
- name: Build vmm UI
28+
run: |
29+
npm ci
30+
npm run build
31+
working-directory: vmm/ui
32+
33+
- name: Ensure vmm UI build is clean
34+
run: |
35+
if [ -n "$(git status --porcelain)" ]; then
36+
echo "VMM UI build produced uncommitted changes."
37+
echo "Run: cd vmm/ui && npm ci && npm run build"
38+
echo "Then commit the updated build output `vmm/src/console_v1.html`"
39+
git status --porcelain
40+
exit 1
41+
fi

0 commit comments

Comments
 (0)