Skip to content

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

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.yml
index 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-latest
strategy:
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: npm
cache-dependency-path: archify/package-lock.json
- name: Install renderer dependencies
- if: needs.scope.outputs.scope == 'full'
run: npm ci
working-directory: archify
- name: Golden-file + schema tests
- if: needs.scope.outputs.scope == 'full'
run: npm test
working-directory: archify
webm-artifact:
- needs: scope
- if: always() && !cancelled()
runs-on: ubuntu-latest
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: Provision a known Chrome runtime
- if: needs.scope.outputs.scope == 'full'
id: setup-chrome
uses: browser-actions/setup-chrome@v2
with:
chrome-version: stable
install-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:webm
working-directory: archify
env:
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.mjs
working-directory: archify
env:
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.mjs
working-directory: archify
env:
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-fund
working-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.mjs
working-directory: archify
env:
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.mjs
working-directory: archify
env:
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.mjs
working-directory: archify
env:
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.mjs
working-directory: archify
env:
@@ -151,27 +86,13 @@ jobs:
ARCHIFY_CHROME_NO_SANDBOX: '1'
zip-freshness:
- needs: scope
- if: always() && !cancelled()
runs-on: ubuntu-latest
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: Rebuild archify.zip and compare exact bytes
- if: needs.scope.outputs.scope == 'full'
run: |
scripts/build-zip.sh /tmp/fresh.zip
if ! cmp -s /tmp/fresh.zip archify.zip; then
@@ -180,27 +101,13 @@ jobs:
fi
published-update-manifest:
- needs: scope
- if: always() && !cancelled()
runs-on: ubuntu-latest
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: 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:
fi
package-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 pipefail
package_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: pwsh
run: |
$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-latest
concurrency:
group: github-pages
@@ -358,18 +216,12 @@ jobs:
- name: Configure GitHub Pages
if: 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 documentation
if: steps.deployment-head.outputs.current == 'true'
uses: actions/upload-pages-artifact@v5
with:
- path: website/dist
- - name: Deploy verified website
+ path: docs
+ - name: Deploy checked documentation
if: steps.deployment-head.outputs.current == 'true'
id: deployment
uses: actions/deploy-pages@v5