Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/lit_samples_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ jobs:
working-directory: ./samples/client/lit
run: npm install --workspaces

- name: Typecheck all lit samples workspaces
working-directory: ./samples/client/lit
run: npm run build:tsc --workspaces

- name: Build all lit samples workspaces
working-directory: ./samples/client/lit
run: npm run build --workspaces

- name: Test all lit samples workspaces
working-directory: ./samples/client/lit
run: npm run test --workspaces --if-present


20 changes: 8 additions & 12 deletions .github/workflows/ng_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,14 @@ jobs:
working-directory: ./samples/client/angular
run: npm run build:renderer

- name: Build contact sample
- name: Build all Angular projects
working-directory: ./samples/client/angular
run: npm run build contact
run: |
for project in gallery contact restaurant rizzcharts orchestrator; do
echo "Building $project..."
npm run build $project
done

- name: Build restaurant sample
- name: Run Angular tests
working-directory: ./samples/client/angular
run: npm run build restaurant

- name: Build Rizzchart sample
working-directory: ./samples/client/angular
run: npm run build rizzcharts

- name: Build Orchestrator
working-directory: ./samples/client/angular
run: npm run build orchestrator
run: npm run test -- --watch=false --browsers=ChromeHeadless
28 changes: 24 additions & 4 deletions .github/workflows/python_samples_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ on:
- main
paths:
- 'samples/agent/adk/**'
- 'samples/agent/mcp/**'
- 'agent_sdks/python/**'
- 'specification/**/json/**'
pull_request:
paths:
- 'samples/agent/adk/**'
- 'samples/agent/mcp/**'
- 'agent_sdks/python/**'
- 'specification/**/json/**'

Expand Down Expand Up @@ -53,16 +55,34 @@ jobs:

- name: Build contact_lookup
working-directory: samples/agent/adk/contact_lookup
run: uv build .
run: |
uv build .
uv run . --help
uv run python -c "from agent import ContactAgent; a = ContactAgent(base_url='http://localhost', use_ui=True); print(f'Agent card validated: {a.get_agent_card().name}')"

- name: Build orchestrator
working-directory: samples/agent/adk/orchestrator
run: uv build .
run: |
uv build .
uv run . --help
uv run python -c "from agent import OrchestratorAgent; a = OrchestratorAgent(base_url='http://localhost', use_ui=True); print(f'Agent card validated: {a.get_agent_card().name}')"

- name: Build restaurant_finder
working-directory: samples/agent/adk/restaurant_finder
run: uv build .
run: |
uv build .
uv run . --help
uv run python -c "from agent import RestaurantAgent; a = RestaurantAgent(base_url='http://localhost', use_ui=True); print(f'Agent card validated: {a.get_agent_card().name}')"

- name: Build rizzcharts
working-directory: samples/agent/adk/rizzcharts
run: uv build .
run: |
uv build .
uv run . --help
uv run python -c "from agent import RizzchartsAgent; a = RizzchartsAgent(base_url='http://localhost', use_ui=True); print(f'Agent card validated: {a.get_agent_card().name}')"

- name: Build mcp demo
working-directory: samples/agent/mcp
run: |
uv build .
uv run . --help
12 changes: 12 additions & 0 deletions samples/client/angular/projects/gallery/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
]
},
"include": [
"src/**/*.ts"
]
}
3 changes: 2 additions & 1 deletion samples/client/lit/component_gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"service": true
},
"test": {
"command": "node --test --enable-source-maps --test-reporter spec dist/src/0.8/tests/**/*.test.js",
"command": "npx tsx --test --test-reporter spec tests/**/*.test.ts",
"dependencies": [
"build"
]
Expand Down Expand Up @@ -62,6 +62,7 @@
"devDependencies": {
"dotenv": "^17.2.3",
"typescript": "^5.8.3",
"tsx": "^4.19.0",
"uuid": "^13.0.0",
"vite": "^7.1.11",
"wireit": "^0.15.0-pre.2"
Expand Down
8 changes: 8 additions & 0 deletions samples/client/lit/component_gallery/tests/smoke.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test } from 'node:test';
import assert from 'node:assert';
import '../component-gallery.ts';
import '../client.ts';

test('smoke test: component_gallery imports resolve', () => {
assert.ok(true);
});
3 changes: 2 additions & 1 deletion samples/client/lit/contact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"service": true
},
"test": {
"command": "node --test --enable-source-maps --test-reporter spec dist/src/0.8/tests/**/*.test.js",
"command": "npx tsx --test --test-reporter spec tests/**/*.test.ts",
"dependencies": [
"build"
]
Expand Down Expand Up @@ -70,6 +70,7 @@
"devDependencies": {
"dotenv": "^17.2.3",
"typescript": "^5.8.3",
"tsx": "^4.19.0",
"uuid": "^13.0.0",
"vite": "^7.1.11",
"wireit": "^0.15.0-pre.2"
Expand Down
8 changes: 8 additions & 0 deletions samples/client/lit/contact/tests/smoke.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test } from 'node:test';
import assert from 'node:assert';
import '../contact.ts';
import '../client.ts';

test('smoke test: contact imports resolve', () => {
assert.ok(true);
});
1 change: 1 addition & 0 deletions samples/client/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.8.1",
"description": "A2UI Lit Samples",
"workspaces": [
"component_gallery",
"contact",
"shell"
],
Expand Down
3 changes: 2 additions & 1 deletion samples/client/lit/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"service": true
},
"test": {
"command": "node --test --enable-source-maps --test-reporter spec dist/src/0.8/tests/**/*.test.js",
"command": "npx tsx --test --test-reporter spec tests/**/*.test.ts",
"dependencies": [
"build"
]
Expand Down Expand Up @@ -72,6 +72,7 @@
"devDependencies": {
"dotenv": "^17.2.3",
"typescript": "^5.8.3",
"tsx": "^4.19.0",
"uuid": "^13.0.0",
"vite": "^7.1.11",
"wireit": "^0.15.0-pre.2"
Expand Down
8 changes: 8 additions & 0 deletions samples/client/lit/shell/tests/smoke.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { test } from 'node:test';
import assert from 'node:assert';
import '../app.ts';
import '../client.ts';

test('smoke test: shell imports resolve', () => {
assert.ok(true);
});
Loading