docs(mirror): clarify compat-only operator paths #290
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror Runtime CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/mirrordaemon/**" | |
| - "src/mirror*/**" | |
| - "packages/openclaw/**" | |
| - "mirror.mjs" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| - "tsdown.mirror.config.ts" | |
| - "vitest.mirror.config.ts" | |
| - "scripts/ci-mirror-smoke.ts" | |
| - "scripts/test-mirror-runtime-boundary-smoke.mjs" | |
| - "scripts/assemble-mirror-runtime-dist.ts" | |
| - "scripts/copy-mirror-runtime-assets.ts" | |
| - "scripts/verify-mirror-runtime-dist.ts" | |
| - "packaging/mirror-runtime/**" | |
| - "src/compat/openclaw/shim-boundary.test.ts" | |
| - "src/runtime/compat-legacy-boundary.test.ts" | |
| - "test/mirror-package-boundary.test.ts" | |
| - "docs/debug/mirror-runtime-canonical-entrypoints.md" | |
| - ".github/workflows/mirror-runtime-ci.yml" | |
| - ".github/actions/setup-node-env/**" | |
| - ".github/actions/setup-pnpm-store-cache/**" | |
| pull_request: | |
| # Canonical PR gate for Mirror Runtime work. | |
| # Keep PR checks reportable even when changes fall outside the narrow runtime paths so | |
| # GitHub required-check settings can point here without leaving runtime PRs stuck in | |
| # perpetual "Expected" state. | |
| concurrency: | |
| group: mirror-runtime-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| mirror-runtime-build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Setup Node environment | |
| uses: ./.github/actions/setup-node-env | |
| with: | |
| install-bun: "false" | |
| - name: Build Mirror runtime boundary | |
| run: pnpm package:mirror-runtime | |
| - name: Test Mirror runtime boundary | |
| run: pnpm test:mirror && pnpm verify:mirror-runtime-dist && pnpm verify:mirror-runtime-bootstrap | |
| - name: Upload Mirror runtime dist artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mirror-runtime-dist | |
| path: | | |
| dist/mirror-entry.js | |
| dist/mirror-package.js | |
| dist/schema.sql | |
| dist/mirror-runtime-linux.tar.gz | |
| dist/mirror-runtime-linux/** | |
| retention-days: 1 | |
| mirror-runtime-smoke: | |
| needs: [mirror-runtime-build-test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Setup Node environment | |
| uses: ./.github/actions/setup-node-env | |
| with: | |
| install-bun: "false" | |
| - name: Run Mirror runtime boundary smoke target | |
| run: pnpm test:mirror:smoke | |
| - name: Download Mirror runtime dist artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: mirror-runtime-dist | |
| path: dist/ | |
| - name: Extract packaged Mirror runtime dist | |
| run: | | |
| rm -rf /tmp/mirror-runtime-smoke | |
| mkdir -p /tmp/mirror-runtime-smoke | |
| tar -xzf dist/mirror-runtime-linux.tar.gz -C /tmp/mirror-runtime-smoke | |
| - name: Smoke packaged Mirror CLI entry | |
| run: /tmp/mirror-runtime-smoke/mirror-runtime-linux/rootfs/opt/mirror-runtime/bin/mirror help | |
| - name: Smoke packaged Mirror runtime service | |
| run: node --import tsx scripts/ci-mirror-smoke.ts --runtime-root /tmp/mirror-runtime-smoke/mirror-runtime-linux/rootfs/opt/mirror-runtime | |
| - name: Smoke built Mirror runtime service | |
| run: pnpm smoke:mirror && pnpm verify:mirror-runtime-dist |