File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments