Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Run serialization graph regression controls in the pre-install CI check

pulse-triage[bot]1691d91bf8e8
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 39cffa2cdb..f2f9b7a86f 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -209,7 +209,9 @@ jobs:
# npm overrides can install an older serializer than a new Solid asks
# for without npm ci failing. The old security exception is source-bound.
- name: Check Solid serialization dependency edges
- run: node scripts/check-frontend-serialization.mjs
+ run: |
+ node --test scripts/tests/check-frontend-serialization.test.mjs
+ node scripts/check-frontend-serialization.mjs
- name: Install frontend dependencies
working-directory: frontend-modern
diff --git a/scripts/tests/check-frontend-serialization.test.mjs b/scripts/tests/check-frontend-serialization.test.mjs
index 12bede218d..aac66a2014 100644
--- a/scripts/tests/check-frontend-serialization.test.mjs
+++ b/scripts/tests/check-frontend-serialization.test.mjs
@@ -126,7 +126,8 @@ test('CI fails the graph check before installation without relaxing the audit',
const check = frontend.indexOf('- name: Check Solid serialization dependency edges');
const install = frontend.indexOf('- name: Install frontend dependencies');
assert.ok(check >= 0 && check < install);
- assert.match(frontend.slice(check, install), /run: node scripts\/check-frontend-serialization\.mjs/);
+ assert.match(frontend.slice(check, install), /node --test scripts\/tests\/check-frontend-serialization\.test\.mjs/);
+ assert.match(frontend.slice(check, install), /node scripts\/check-frontend-serialization\.mjs/);
assert.doesNotMatch(frontend.slice(check, install), /continue-on-error/);
assert.match(frontend, /NPM_AUDIT_REQUIRE_RESULT: \$\{\{ needs\.changes\.outputs\.frontend_deps \}\}/);
assert.match(frontend, /npm-audit-retry\.sh" all/);