Skip to content

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

ci: run sequence header checks with the provisioned browser

tt-a1i57b32bb22d65
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cd42a88b..397a667b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,8 +45,8 @@ jobs:
working-directory: archify
env:
ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}
- - name: Verify packaged examples and Reader Layout boundaries in a real browser
- run: node --test test/desktop-reader-browser.test.mjs test/reader-layout-browser.test.mjs
+ - name: Verify packaged examples, Reader Layout and sequence header clearance
+ run: node --test --test-concurrency=2 test/desktop-reader-browser.test.mjs test/reader-layout-browser.test.mjs test/sequence-header-clearance.test.mjs
working-directory: archify
env:
ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}
diff --git a/archify/test/sequence-header-clearance.test.mjs b/archify/test/sequence-header-clearance.test.mjs
index 929db52a..40e3fc37 100644
--- a/archify/test/sequence-header-clearance.test.mjs
+++ b/archify/test/sequence-header-clearance.test.mjs
@@ -13,8 +13,9 @@ const testDir=path.dirname(fileURLToPath(import.meta.url));
// Public synthetic labels deliberately exercise a maximum-width participant.
// This fixture carries no application-specific source or private repository.
test('sequence headers reserve an icon/brand rail without shrinking or changing literal labels', async t=>{
+ if(!process.env.ARCHIFY_CHROME){t.skip('Set ARCHIFY_CHROME to run the real browser regression.');return;}
const chrome=findChrome();
- if(!chrome){t.skip('Chrome is unavailable; this is not a browser pass');return;}
+ assert.ok(chrome,'The configured browser regression requires Chrome.');
const dir=fs.mkdtempSync(path.join(os.tmpdir(),'archify-sequence-header-'));
const spec={schema_version:1,diagram_type:'sequence',meta:{title:'Sequence header clearance regression',quality_profile:'standard',column_fit:'spread',viewBox:[1700,600]},participants:[
{id:'transfer',type:'backend',label:'Cloud File Transfer (CFTS)',sublabel:'Transfer participant'},