mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
580a3e9214
Root causes (verified locally with docker build + run):
1. PermissionError: non-root user can't write .langgraph_api dir — fix: chown -R app:app /app
2. ImportError: relative imports fail in langgraph_cli context — fix: absolute imports
3. ValueError: tools.py and tools/ directory collision — fix: rename to tool_wrappers.py
Tested: docker run returns {"status":"ok","agent":"ok"}
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: "Showcase: Verify Starters Match Template"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "showcase/starters/**"
|
|
- "showcase/packages/*/src/agents/**"
|
|
- "showcase/packages/*/src/mastra/**"
|
|
- "showcase/scripts/generate-starters.ts"
|
|
- "showcase/shared/python/**"
|
|
- "showcase/shared/typescript/**"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "showcase/starters/**"
|
|
- "showcase/packages/*/src/agents/**"
|
|
- "showcase/packages/*/src/mastra/**"
|
|
- "showcase/scripts/generate-starters.ts"
|
|
- "showcase/shared/python/**"
|
|
- "showcase/shared/typescript/**"
|
|
|
|
jobs:
|
|
drift-check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.x
|
|
- name: Verify generated starters match template output
|
|
run: |
|
|
echo "Regenerating starters from template and comparing to committed versions..."
|
|
echo "If this fails, run: npx tsx showcase/scripts/generate-starters.ts"
|
|
npx tsx showcase/scripts/generate-starters.ts --check
|