Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
microchipgnu committed Nov 29, 2023
1 parent fb8ae2e commit 4daf2a1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/validate-with-agent-protocol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
jobs:
validate-with-agent-protocol:
name: Validate agent protocol compliance
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install agent requirements
run: bun i

- name: Run agent and validate compliance
run: |
bun run:agent
URL=http://localhost:8000 bash -c "$(curl -fsSL https://agentprotocol.ai/test.sh)"
1 change: 1 addition & 0 deletions packages/agent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ const port = 8000;

Agent.handleTask(taskHandler, {
port: port,
workspace: import.meta.dir,
}).start();
3 changes: 2 additions & 1 deletion packages/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@micro-agi/agent",
"module": "index.ts",
"type": "module",
"scripts": {},
"devDependencies": {
"bun-types": "latest"
},
Expand All @@ -11,4 +12,4 @@
"dependencies": {
"agent-protocol": "^1.0.2"
}
}
}

0 comments on commit 4daf2a1

Please sign in to comment.