test(frontend): verify global stylesheet @import graph after vitest

Add scripts/check-css-import-graph.mjs and run it from npm test and
test:coverage so missing relative CSS imports fail CI like Vite/postcss.
Document the step in src/test/README.md; trigger frontend workflow when
the script changes.
This commit is contained in:
Maxim Isaev
2026-05-13 21:09:53 +03:00
parent 2eb23e99b5
commit 94cfb3b58d
4 changed files with 81 additions and 2 deletions
+2
View File
@@ -13,6 +13,7 @@ on:
- '.github/workflows/frontend-tests.yml'
- '.github/frontend-hot-path-files.txt'
- 'scripts/check-frontend-hot-path-coverage.sh'
- 'scripts/check-css-import-graph.mjs'
push:
branches: [main]
paths:
@@ -25,6 +26,7 @@ on:
- '.github/workflows/frontend-tests.yml'
- '.github/frontend-hot-path-files.txt'
- 'scripts/check-frontend-hot-path-coverage.sh'
- 'scripts/check-css-import-graph.mjs'
workflow_dispatch:
permissions: