Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/vmm-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: © 2024-2025 Phala Network <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

name: VMM UI build

permissions:
contents: read

on:
push:
branches: [ master, next, dev-* ]
pull_request:
branches: [ master, next, dev-* ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Build vmm UI
run: |
npm ci
npm run build
working-directory: vmm/ui

- name: Ensure vmm UI build is clean
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "VMM UI build produced uncommitted changes."
echo "Run: cd vmm/ui && npm ci && npm run build"
echo "Then commit the updated build output `vmm/src/console_v1.html`"
git status --porcelain
exit 1
fi
Comment on lines +18 to +41

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 9 days ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.