mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
56 lines
1.3 KiB
YAML
56 lines
1.3 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: 20
|
|
|
|
- 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
|