Fix: integrate example e2e tests into monorepo (#3056)

This commit is contained in:
Max Korp
2026-01-21 16:21:42 -07:00
committed by GitHub
parent 8f5e131bf4
commit e49f607133
34 changed files with 1752 additions and 59417 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
name: cleanup
name: cleanup / pr-caches
on:
pull_request:
types:
+1 -1
View File
@@ -1,4 +1,4 @@
name: e2e / dojo
name: test / e2e / dojo
on:
push:
+11 -10
View File
@@ -1,4 +1,4 @@
name: e2e / examples
name: test / e2e / examples
on:
push:
@@ -62,6 +62,16 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build CopilotKit
id: build-cpk
run: pnpm build:classic
- name: Install e2e dependencies
working-directory: examples/e2e
run: pnpm install --frozen-lockfile
@@ -70,15 +80,6 @@ jobs:
working-directory: examples/e2e
run: pnpm exec playwright install --with-deps chromium
- name: Install example dependencies
working-directory: examples/v1.x/${{ matrix.example }}
run: |
if [ "${{ matrix.example }}" = "research-canvas" ]; then
pnpm install --frozen-lockfile --ignore-scripts
else
pnpm install --frozen-lockfile
fi
- name: Run e2e tests
working-directory: examples/e2e
env:
+5 -1
View File
@@ -1,4 +1,4 @@
name: publish
name: publish / custom
on:
workflow_dispatch:
@@ -18,6 +18,10 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Setup Node
uses: actions/setup-node@v4
with:
+4 -1
View File
@@ -1,4 +1,4 @@
name: publish
name: publish / release
on:
workflow_dispatch:
@@ -29,6 +29,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Dependencies
run: pnpm i
+4 -1
View File
@@ -1,4 +1,4 @@
name: commitlint
name: static / commitlint
on:
push:
@@ -20,6 +20,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
+4 -1
View File
@@ -1,4 +1,4 @@
name: static
name: static / danger
on:
pull_request:
@@ -19,6 +19,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
+4 -1
View File
@@ -1,4 +1,4 @@
name: static
name: static / quality
on:
push:
@@ -35,6 +35,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
+5 -2
View File
@@ -1,4 +1,4 @@
name: test
name: test / unit / v1
on:
push:
@@ -43,6 +43,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
@@ -52,7 +55,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build
run: npx turbo run build
run: pnpm build
- name: Run tests
run: npm run test:classic
+4 -1
View File
@@ -1,4 +1,4 @@
name: test
name: test / unit / v2
on:
push:
@@ -36,6 +36,9 @@ jobs:
with:
version: "10.13.1"
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
View File
@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
allowedDevOrigins: ["127.0.0.1"],
};
export default nextConfig;
@@ -1,5 +1,5 @@
{
"name": "copilot-form-filling",
"name": "@copilotkit-examples/chat-with-your-data",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@copilotkit/react-core": "1.50.1",
"@copilotkit/react-ui": "1.50.1",
"@copilotkit/runtime": "1.50.1",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/react-ui": "workspace:*",
"@copilotkit/runtime": "workspace:*",
"@hookform/resolvers": "^4.1.2",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-popover": "^1.1.6",
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
allowedDevOrigins: ["127.0.0.1"],
};
export default nextConfig;
+4 -4
View File
@@ -1,5 +1,5 @@
{
"name": "copilot-form-filling",
"name": "@copilotkit-examples/form-filling",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@copilotkit/react-core": "^1.50.1",
"@copilotkit/react-ui": "^1.50.1",
"@copilotkit/runtime": "^1.50.1",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/react-ui": "workspace:*",
"@copilotkit/runtime": "workspace:*",
"@hookform/resolvers": "^4.1.2",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-popover": "^1.1.6",
File diff suppressed because it is too large Load Diff
@@ -16,7 +16,7 @@
"typescript": "^5.6.3"
},
"dependencies": {
"@copilotkit/sdk-js": "^1.5.13",
"@copilotkit/sdk-js": "workspace:*",
"@langchain/anthropic": "^0.3.8",
"@langchain/core": "^0.3.18",
"@langchain/google-genai": "^0.1.4",
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone"
output: "standalone",
allowedDevOrigins: ["127.0.0.1"],
};
export default nextConfig;
+4 -10
View File
@@ -1,5 +1,5 @@
{
"name": "ui",
"name": "@copilotkit-examples/research-canvas",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -15,9 +15,9 @@
"postinstall": "npm run install:agent:py"
},
"dependencies": {
"@copilotkit/react-core": "1.50.1",
"@copilotkit/react-ui": "1.50.1",
"@copilotkit/runtime": "1.50.1",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/react-ui": "workspace:*",
"@copilotkit/runtime": "workspace:*",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-select": "^2.1.2",
@@ -42,11 +42,5 @@
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"pnpm": {
"overrides": {
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2"
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
allowedDevOrigins: ["127.0.0.1"],
};
export default nextConfig;
+5 -5
View File
@@ -1,5 +1,5 @@
{
"name": "state-machine",
"name": "@copilotkit-examples/state-machine",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -10,10 +10,10 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .next"
},
"dependencies": {
"@copilotkit/react-core": "1.50.1",
"@copilotkit/runtime": "1.50.1",
"@copilotkit/react-ui": "1.50.1",
"@copilotkit/runtime-client-gql": "1.50.1",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/runtime": "workspace:*",
"@copilotkit/react-ui": "workspace:*",
"@copilotkit/runtime-client-gql": "workspace:*",
"clsx": "^1.2.1",
"motion": "^11.18.1",
"next": "14.2.35",
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
allowedDevOrigins: ["127.0.0.1"],
};
export default nextConfig;
+4 -10
View File
@@ -1,5 +1,5 @@
{
"name": "coagents-travel",
"name": "@copilotkit-examples/travel",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -12,9 +12,9 @@
"install:agent": "cd agent && uv sync"
},
"dependencies": {
"@copilotkit/react-core": "1.50.1",
"@copilotkit/react-ui": "1.50.1",
"@copilotkit/runtime": "1.50.1",
"@copilotkit/react-core": "workspace:*",
"@copilotkit/react-ui": "workspace:*",
"@copilotkit/runtime": "workspace:*",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
@@ -54,11 +54,5 @@
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"pnpm": {
"overrides": {
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2"
}
}
}
-12957
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -2,7 +2,7 @@
"name": "CopilotKit",
"private": true,
"scripts": {
"build": "turbo run build",
"build": "turbo run build --filter=!@copilotkit-examples/* --filter=!@copilotkit-storybook/*",
"build:classic": "turbo run build --filter=@copilotkit/*",
"build:next": "turbo run build --filter=@copilotkitnext/*",
"build:storybook": "turbo run build --filter=storybook-react --filter=storybook-angular",
@@ -95,6 +95,7 @@
}
},
"overrides": {
"streamdown>react": "^19.0.0",
"@ag-ui/client": "0.0.42",
"@ag-ui/core": "0.0.42",
"@ag-ui/encoder": "0.0.42",
+1668 -102
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -7,5 +7,7 @@ packages:
- "src/v2.x/apps/react/*"
- "src/v2.x/apps/angular/*"
- "src/v2.x/apps/node"
- "examples/v1.x/*"
- "!examples/v1.x/_legacy"
onlyBuiltDependencies:
- better-sqlite3
@@ -63,11 +63,6 @@
"typescript": "^5.2.3",
"zod": ">=3.0.0"
},
"pnpm": {
"overrides": {
"streamdown>react": "^19.0.0"
}
},
"dependencies": {
"@ag-ui/client": "^0.0.42",
"@copilotkit/runtime-client-gql": "workspace:*",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "storybook-angular",
"name": "@copilotkit-storybook/angular",
"private": true,
"version": "0.0.0",
"scripts": {
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "storybook-react",
"name": "@copilotkit-storybook/react",
"private": true,
"version": "0.0.0",
"scripts": {