Repository navigation
feat(knowledge): Git-friendly repositories and resumable partial transfers #2978
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: Docs PR Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'apps/agor-docs/**' | |
| - 'README.md' | |
| - 'docker/README.md' | |
| - 'packages/agor-live/README.md' | |
| - 'apps/agor-cli/src/commands/daemon/restart.ts' | |
| - 'pnpm-lock.yaml' | |
| - 'package.json' | |
| - 'pnpm-workspace.yaml' | |
| - 'patches/**' | |
| - 'packages/git/package.json' | |
| - 'docker/Dockerfile.docs-preview' | |
| - 'docker/docker-entrypoint-docs.sh' | |
| - 'docker/runtime-*.mjs' | |
| - 'scripts/managed-environments/railway/**' | |
| - '.agor.yml' | |
| - '.github/workflows/docs-pr-check.yml' | |
| jobs: | |
| docs-preview-image: | |
| name: Docs preview image | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: docker/setup-buildx-action@v4 | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/Dockerfile.docs-preview | |
| tags: agor-docs-preview:check | |
| load: true | |
| push: false | |
| - name: Check frozen dependencies and docs source reload (no Railway resources) | |
| run: | | |
| docker run --rm --entrypoint sh agor-docs-preview:check -ec ' | |
| test "$(node /usr/local/lib/agor/runtime-docs.mjs fingerprint)" = "$(cat /opt/agor-docs-fingerprint)" | |
| test -x /app/apps/agor-docs/node_modules/.bin/next | |
| node -e "require(require.resolve(\"simple-git\", {paths:[\"/app/packages/git\"]}))" | |
| ' | |
| docker run --rm --user agor --entrypoint node \ | |
| -v "$PWD:/source:ro" agor-docs-preview:check /source/docker/runtime-docs-smoke.mjs | |
| check-docs: | |
| name: Build Docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11.17.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build git package | |
| run: pnpm --filter @agor/git build | |
| - name: Build core package | |
| run: pnpm --filter @agor/core build | |
| - name: Build docs | |
| run: pnpm --filter @agor/docs build | |
| env: | |
| NEXT_PUBLIC_GA_ID: G-DME77D3LDH | |
| - name: Verify production analytics export | |
| run: pnpm --filter @agor/docs validate:analytics | |
| env: | |
| NEXT_PUBLIC_GA_ID: G-DME77D3LDH | |
| - name: Verify favicon artwork and exported icon links | |
| run: pnpm --filter @agor/docs validate:brand-assets --export | |
| - name: Verify build output | |
| run: | | |
| if [ ! -d "apps/agor-docs/out" ]; then | |
| echo "Error: docs build output directory not found" | |
| exit 1 | |
| fi | |
| echo "✅ Docs built successfully" |