mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
810f8a4f4d
- Node 20 → 22 in all Dockerfiles + CI workflows - CI copies shared_python, shared_frontend/src, shared_typescript/tools - tsconfig paths for @copilotkit/showcase-shared - .gitignore for CI artifacts
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
name: "Showcase: Validate"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "showcase/**"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "showcase/**"
|
|
|
|
concurrency:
|
|
group: showcase-validate-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
validate:
|
|
name: Validate Showcase
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Verify lockfile is up to date
|
|
run: pnpm install --frozen-lockfile --ignore-scripts
|
|
|
|
- name: Run build pipeline tests
|
|
working-directory: showcase/scripts
|
|
run: npx vitest run
|
|
|
|
- name: Validate manifests & generate registry
|
|
working-directory: showcase/scripts
|
|
run: npx tsx generate-registry.ts
|
|
|
|
- name: Bundle demo content
|
|
working-directory: showcase/scripts
|
|
run: npx tsx bundle-demo-content.ts
|
|
|
|
- name: Install showcase shell dependencies
|
|
working-directory: showcase/shell
|
|
run: npm install --ignore-scripts
|
|
|
|
- name: Build showcase shell
|
|
working-directory: showcase/shell
|
|
run: npm run build
|
|
|
|
- name: Notify Slack (failure)
|
|
if: failure() && github.event_name == 'push'
|
|
uses: slackapi/slack-github-action@v2.1.0
|
|
with:
|
|
webhook: ${{ secrets.SLACK_WEBHOOK_OSS_ALERTS }}
|
|
webhook-type: incoming-webhook
|
|
payload: |
|
|
{ "text": ":x: *Showcase validate*: failed | <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>" }
|