Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
chore(ci): keep this branch's existing ci.yml through the upstream merge
uygnoeye34cf378e492
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 6e5cf144..368c2888 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -5,145 +5,80 @@ on:branches: [main]pull_request:-# Cancel obsolete PR runs, but never interrupt main verification/deployment.-concurrency:- group: ci-${{ github.event.pull_request.number || github.run_id }}- cancel-in-progress: ${{ github.event_name == 'pull_request' }}-jobs:- scope:- runs-on: ubuntu-latest- outputs:- scope: ${{ steps.classify.outputs.scope }}- website: ${{ steps.classify.outputs.website }}- steps:- - uses: actions/checkout@v5- with:- fetch-depth: 0- - uses: actions/setup-node@v5- with:- node-version: 22- - name: Classify changed paths- id: classify- run: node scripts/ci-scope.mjs- env:- CI_EVENT_NAME: ${{ github.event_name }}- CI_BASE_SHA: ${{ github.event.pull_request.base.sha }}- - name: Check README content for documentation-only changes- if: steps.classify.outputs.scope == 'docs'- run: node --test archify/test/readme-showcase.test.mjs-test:- needs: scope- if: always() && !cancelled()runs-on: ubuntu-lateststrategy:matrix:node-version: [18, 20, 22, 24]steps:- # Keep every required matrix check present; fail closed if classification/checks fail.- - name: Require successful scope checks- env:- SCOPE_RESULT: ${{ needs.scope.result }}- CI_SCOPE: ${{ needs.scope.outputs.scope }}- shell: bash- run: |- test "$SCOPE_RESULT" = success- case "$CI_SCOPE" in docs|full) ;; *) exit 1 ;; esac- uses: actions/checkout@v5- if: needs.scope.outputs.scope == 'full'- uses: actions/setup-node@v5- if: needs.scope.outputs.scope == 'full'with:node-version: ${{ matrix.node-version }}cache: npmcache-dependency-path: archify/package-lock.json- name: Install renderer dependencies- if: needs.scope.outputs.scope == 'full'run: npm ciworking-directory: archify- name: Golden-file + schema tests- if: needs.scope.outputs.scope == 'full'run: npm testworking-directory: archifywebm-artifact:- needs: scope- if: always() && !cancelled()runs-on: ubuntu-lateststeps:- # Keep every required matrix check present; fail closed if classification/checks fail.- - name: Require successful scope checks- env:- SCOPE_RESULT: ${{ needs.scope.result }}- CI_SCOPE: ${{ needs.scope.outputs.scope }}- shell: bash- run: |- test "$SCOPE_RESULT" = success- case "$CI_SCOPE" in docs|full) ;; *) exit 1 ;; esac- uses: actions/checkout@v5- if: needs.scope.outputs.scope == 'full'- uses: actions/setup-node@v5- if: needs.scope.outputs.scope == 'full'with:node-version: 22- name: Provision a known Chrome runtime- if: needs.scope.outputs.scope == 'full'id: setup-chromeuses: browser-actions/setup-chrome@v2with:chrome-version: stableinstall-dependencies: true- name: Install the WebM decoder- if: needs.scope.outputs.scope == 'full'run: sudo apt-get update && sudo apt-get install --no-install-recommends -y ffmpeg- name: Decode a real motion export and reject static frames- if: needs.scope.outputs.scope == 'full'run: npm run test:webmworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}- name: Verify packaged examples and Reader Layout boundaries in a real browser- if: needs.scope.outputs.scope == 'full'run: node --test test/desktop-reader-browser.test.mjs test/reader-layout-browser.test.mjsworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Verify SVG export cleanup and live state isolation- if: needs.scope.outputs.scope == 'full'run: node --test test/export-cleanup-browser.test.mjsworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Install offline font test parser- if: needs.scope.outputs.scope == 'full'run: npm ci --ignore-scripts --no-audit --no-fundworking-directory: archify- name: Verify offline fonts and independent SVG/raster exports- if: needs.scope.outputs.scope == 'full'run: node --test test/offline-font-browser.test.mjsworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Verify all five diagram modes localize Viewer interactions- if: needs.scope.outputs.scope == 'full'run: node --test test/i18n.test.mjsworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Verify Semantic Radar collision and drag behavior- if: needs.scope.outputs.scope == 'full'run: node --test test/semantic-radar.test.mjsworking-directory: archifyenv:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Verify Viewer chrome, camera, motion and input interactions- if: needs.scope.outputs.scope == 'full'run: node --test --test-concurrency=2 test/viewer-chrome-layout.test.mjs test/viewer-camera-browser.test.mjs test/motion-governor-browser.test.mjs test/finder-browser.test.mjs test/intent-trace-browser.test.mjs test/semantic-lens-browser.test.mjs test/route-probe-browser.test.mjs test/guided-views-browser.test.mjs test/focus-browser.test.mjs test/export-browser.test.mjs test/viewer-identifiers-browser.test.mjsworking-directory: archifyenv:@@ -151,27 +86,13 @@ jobs:ARCHIFY_CHROME_NO_SANDBOX: '1'zip-freshness:- needs: scope- if: always() && !cancelled()runs-on: ubuntu-lateststeps:- # Keep every required matrix check present; fail closed if classification/checks fail.- - name: Require successful scope checks- env:- SCOPE_RESULT: ${{ needs.scope.result }}- CI_SCOPE: ${{ needs.scope.outputs.scope }}- shell: bash- run: |- test "$SCOPE_RESULT" = success- case "$CI_SCOPE" in docs|full) ;; *) exit 1 ;; esac- uses: actions/checkout@v5- if: needs.scope.outputs.scope == 'full'- uses: actions/setup-node@v5- if: needs.scope.outputs.scope == 'full'with:node-version: 22- name: Rebuild archify.zip and compare exact bytes- if: needs.scope.outputs.scope == 'full'run: |scripts/build-zip.sh /tmp/fresh.zipif ! cmp -s /tmp/fresh.zip archify.zip; then@@ -180,27 +101,13 @@ jobs:fipublished-update-manifest:- needs: scope- if: always() && !cancelled()runs-on: ubuntu-lateststeps:- # Keep every required matrix check present; fail closed if classification/checks fail.- - name: Require successful scope checks- env:- SCOPE_RESULT: ${{ needs.scope.result }}- CI_SCOPE: ${{ needs.scope.outputs.scope }}- shell: bash- run: |- test "$SCOPE_RESULT" = success- case "$CI_SCOPE" in docs|full) ;; *) exit 1 ;; esac- uses: actions/checkout@v5- if: needs.scope.outputs.scope == 'full'- uses: actions/setup-node@v5- if: needs.scope.outputs.scope == 'full'with:node-version: 22- name: Public notifier manifest must reference an existing stable Release- if: needs.scope.outputs.scope == 'full'env:GH_TOKEN: ${{ github.token }}run: |@@ -249,8 +156,6 @@ jobs:fipackage-smoke:- needs: scope- if: always() && !cancelled()name: package smoke (${{ matrix.os }})strategy:fail-fast: false@@ -258,23 +163,12 @@ jobs:os: [ubuntu-latest, macos-latest, windows-latest]runs-on: ${{ matrix.os }}steps:- # Keep every required matrix check present; fail closed if classification/checks fail.- - name: Require successful scope checks- env:- SCOPE_RESULT: ${{ needs.scope.result }}- CI_SCOPE: ${{ needs.scope.outputs.scope }}- shell: bash- run: |- test "$SCOPE_RESULT" = success- case "$CI_SCOPE" in docs|full) ;; *) exit 1 ;; esac- uses: actions/checkout@v5- if: needs.scope.outputs.scope == 'full'- uses: actions/setup-node@v5- if: needs.scope.outputs.scope == 'full'with:node-version: 22- name: Extract packaged skill- if: needs.scope.outputs.scope == 'full' && (runner.os != 'Windows')+ if: runner.os != 'Windows'run: |set -euo pipefailpackage_root="$RUNNER_TEMP/archify-package"@@ -282,54 +176,18 @@ jobs:mkdir -p "$package_root"unzip -q archify.zip -d "$package_root"- name: Extract packaged skill- if: needs.scope.outputs.scope == 'full' && (runner.os == 'Windows')+ if: runner.os == 'Windows'shell: pwshrun: |$packageRoot = Join-Path $env:RUNNER_TEMP 'archify-package'if (Test-Path $packageRoot) { Remove-Item -Recurse -Force $packageRoot }Expand-Archive -Path archify.zip -DestinationPath $packageRoot- name: Validate packaged skill without installing dependencies- if: needs.scope.outputs.scope == 'full'run: node scripts/package-smoke.mjs- website:- needs: scope- if: needs.scope.outputs.website == 'true'- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v5- - uses: actions/setup-node@v5- with:- node-version: 22- cache: npm- cache-dependency-path: website/package-lock.json- - name: Install website dependencies- run: npm ci- working-directory: website- - name: Typecheck and build website- run: npm run check && npm run build && npm test- working-directory: website- - uses: browser-actions/setup-chrome@v2- id: website-chrome- with:- 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- env:- ARCHIFY_SITE_ROOT: ${{ github.workspace }}/website/dist- ARCHIFY_SITE_INTEGRATION: '1'- ARCHIFY_CHROME: ${{ steps.website-chrome.outputs.chrome-path }}- ARCHIFY_CHROME_NO_SANDBOX: '1'- - uses: actions/upload-artifact@v4- with:- name: website-dist- path: website/dist- include-hidden-files: true-deploy-pages:if: github.event_name == 'push' && github.ref == 'refs/heads/main'- needs: [test, webm-artifact, zip-freshness, published-update-manifest, package-smoke, website]+ needs: [test, webm-artifact, zip-freshness, published-update-manifest, package-smoke]runs-on: ubuntu-latestconcurrency:group: github-pages@@ -358,18 +216,12 @@ jobs:- name: Configure GitHub Pagesif: steps.deployment-head.outputs.current == 'true'uses: actions/configure-pages@v6- - name: Download verified website build- if: steps.deployment-head.outputs.current == 'true'- uses: actions/download-artifact@v4- with:- name: website-dist- path: website/dist- - name: Upload verified website+ - name: Upload checked documentationif: steps.deployment-head.outputs.current == 'true'uses: actions/upload-pages-artifact@v5with:- path: website/dist- - name: Deploy verified website+ path: docs+ - name: Deploy checked documentationif: steps.deployment-head.outputs.current == 'true'id: deploymentuses: actions/deploy-pages@v5