Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(ci): run catalog browser checks through website script

tt-a1i71e15d3cc8bc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f35363fa..2e4f1bbe 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -301,7 +301,8 @@ jobs:
chrome-version: stable
install-dependencies: true
- name: Verify built website navigation and language continuity
- run: node --test --test-name-pattern='real Chrome' archify/test/site-language-continuity.test.mjs website/test/community-browser.test.mjs
+ run: npm run test:browser
+ working-directory: website
env:
ARCHIFY_SITE_ROOT: ${{ github.workspace }}/website/dist
ARCHIFY_SITE_INTEGRATION: '1'
diff --git a/archify/test/browser-gate.test.mjs b/archify/test/browser-gate.test.mjs
index d2febba4..e76ba7de 100644
--- a/archify/test/browser-gate.test.mjs
+++ b/archify/test/browser-gate.test.mjs
@@ -84,3 +84,16 @@ test('CI and release use the same browser command and retain WebM decoding', ()
assert.doesNotMatch(source, /run: node --test[^\n]*test\/.*browser/);
}
});
+
+
+test('website CI uses the maintained browser script including community security coverage', () => {
+ const manifest = JSON.parse(fs.readFileSync(path.join(repoRoot, 'website/package.json'), 'utf8'));
+ const source = fs.readFileSync(path.join(repoRoot, '.github/workflows/ci.yml'), 'utf8');
+ const gate = source.match(/ {6}- name: Verify built website navigation and language continuity\n([\s\S]*?)(?=\n {6}- |\n {2}[\w-]+:|$)/)?.[1];
+ assert.ok(gate, 'website must run its browser regression gate');
+ assert.match(gate, /run: npm run test:browser\n/);
+ assert.match(gate, /working-directory: website/);
+ assert.match(gate, /ARCHIFY_SITE_INTEGRATION: '1'/);
+ assert.match(manifest.scripts['test:browser'], /site-language-continuity\.test\.mjs/);
+ assert.match(manifest.scripts['test:browser'], /community-browser\.test\.mjs/);
+});
diff --git a/website/README.md b/website/README.md
index 4d0e3e0d..9d041abc 100644
--- a/website/README.md
+++ b/website/README.md
@@ -40,7 +40,7 @@ The existing real Chrome integration suite can run against the built site, inclu
```sh
ARCHIFY_SITE_ROOT="$PWD/dist" ARCHIFY_SITE_INTEGRATION=1 \
ARCHIFY_CHROME="/path/to/chrome" \
-node --test --test-name-pattern='real Chrome' ../archify/test/site-language-continuity.test.mjs
+npm run test:browser
```
CI builds/tests the website when website inputs change and on every main push. It uploads `website-dist`; the existing protected Pages deployment downloads that exact verified artifact. Build output, caches and staged assets are ignored by Git. Existing GitHub required checks and obsolete-deployment protection remain in place.
diff --git a/website/package.json b/website/package.json
index d45e2227..b575934a 100644
--- a/website/package.json
+++ b/website/package.json
@@ -11,7 +11,8 @@
"build": "node scripts/stage-public.mjs && astro build",
"preview": "astro preview",
"check": "astro check",
- "test": "node --test test/*.test.mjs"
+ "test": "node --test test/*.test.mjs",
+ "test:browser": "node --test --test-name-pattern=\"real Chrome\" ../archify/test/site-language-continuity.test.mjs test/community-browser.test.mjs"
},
"dependencies": {
"@astrojs/react": "^6.0.6",