chore: complete 2.0.2 maintenance baseline

This commit is contained in:
cppla
2026-08-20 12:35:47 +08:00
parent 1147f9c5dd
commit 5e7a58c263
16 changed files with 749 additions and 81 deletions
+34 -1
View File
@@ -15,6 +15,15 @@ jobs:
go-version-file: server/go.mod
cache-dependency-path: server/go.sum
- uses: pnpm/action-setup@v4
with:
version: 11.19.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Test Go server
working-directory: server
run: |
@@ -26,10 +35,19 @@ jobs:
- name: Check clients, WebUI and shell scripts
run: |
python3 -m py_compile clients/client-linux.py clients/client-psutil.py
python3 -m unittest clients/test_client_args.py
python3 -m unittest discover -s clients -p 'test_*.py'
sh -n clients/entrypoint.sh
sh -n tests/run-webui-server.sh tests/docker-smoke.sh
bash -n status.sh
node --check web/js/app.js
node --check tests/webui/webui.spec.js
node --check playwright.config.js
- name: Test WebUI in Chromium
run: |
pnpm install --frozen-lockfile
pnpm exec playwright install --with-deps chromium
pnpm test:webui
- name: Validate compose files
run: |
@@ -40,3 +58,18 @@ jobs:
run: |
docker build -f Dockerfile.server -t serverstatus-server:test .
docker build -f Dockerfile.client -t serverstatus-client:test .
- name: Test Docker server-client connection
run: tests/docker-smoke.sh
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Build client image for AMD64 and ARM64
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--file Dockerfile.client \
--output type=cacheonly \
.