mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
89eb0734bd
Retire 4 cron-based GH Actions workflows now replaced by showcase-ops probe drivers: - showcase_drift-detection.yml - showcase_drift-report.yml - showcase_redirect-report.yml - showcase_smoke-monitor.yml Standardise workflow naming (test_* prefix): - e2e_dojo.yml → test_e2e-dojo.yml - e2e_examples.yml → test_e2e-legacy-v1.yml - showcase_aimock-e2e.yml → test_e2e-showcase-on-demand.yml - test_doc-examples.yml → test_integration-docs.yml - test_runtime-servers.yml → test_integration-runtime.yml - starter_deployed_smoke.yml → test_smoke-starter-deployed.yml - starter-smoke.yml → test_smoke-starter.yml showcase_deploy.yml: POST deploy-result webhook to showcase-ops after every deploy so the alert engine ingests the outcome (replaces the inline Slack curl + GitHub status update). static_check-binaries.yml: minor refresh for the new workflow names.
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
name: test / integration / docs
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
paths: ["docs/**"]
|
|
push:
|
|
branches: [main]
|
|
paths: ["docs/**"]
|
|
|
|
# Least-privilege by default. Individual jobs/steps can widen when needed.
|
|
# id-token: write is required for Depot OIDC auth (runs-on: depot-ubuntu-*).
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
jobs:
|
|
validate-model-names:
|
|
runs-on: depot-ubuntu-24.04-4
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm tsx scripts/validate-doc-model-names.ts
|
|
|
|
doc-tests:
|
|
runs-on: depot-ubuntu-24.04-4
|
|
timeout-minutes: 15
|
|
needs: validate-model-names
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- run: pnpm install --frozen-lockfile
|
|
- name: Install and start aimock
|
|
run: |
|
|
npm install -g @copilotkit/aimock@latest
|
|
AIMOCK_BIN=$(npm root -g)/../bin/aimock
|
|
echo "aimock binary: $AIMOCK_BIN"
|
|
ls -la "$AIMOCK_BIN" || echo "binary not found at expected path"
|
|
which aimock || echo "aimock not on PATH"
|
|
nohup node $(npm root -g)/@copilotkit/aimock/dist/cli.js --fixtures scripts/doc-tests/fixtures --validate-on-load > /tmp/aimock.log 2>&1 &
|
|
for i in $(seq 1 60); do
|
|
if curl -sf http://localhost:4010/health; then
|
|
echo "aimock ready"
|
|
exit 0
|
|
fi
|
|
sleep 1
|
|
done
|
|
echo "aimock failed to start. Logs:"
|
|
cat /tmp/aimock.log
|
|
exit 1
|
|
- run: pnpm tsx scripts/doc-tests/extract.ts
|
|
- run: pnpm tsx scripts/doc-tests/run.ts
|