Skip to content

Commit 71746dc

Browse files
committed
ci(cli): test against current core and adapter
Pack current AgentDispatch core and AWS adapter sources during CI so CLI changes validate against unpublished cross-repo contracts.
1 parent 62b7520 commit 71746dc

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,30 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
14+
with:
15+
repository: agent-dispatch/core
16+
path: .agentdispatch-deps/core
17+
- uses: actions/checkout@v4
18+
with:
19+
repository: agent-dispatch/adapter-aws-agentcore
20+
path: .agentdispatch-deps/adapter-aws-agentcore
1321
- uses: actions/setup-node@v4
1422
with:
1523
node-version: 22
24+
- name: Pack current core
25+
run: |
26+
npm --prefix .agentdispatch-deps/core install
27+
npm --prefix .agentdispatch-deps/core run build
28+
npm --prefix .agentdispatch-deps/core pack --pack-destination "$PWD/.agentdispatch-deps"
29+
- name: Pack current AWS adapter
30+
run: |
31+
npm --prefix .agentdispatch-deps/adapter-aws-agentcore install
32+
npm --prefix .agentdispatch-deps/adapter-aws-agentcore install --no-save "$PWD"/.agentdispatch-deps/agent-dispatch-core-*.tgz
33+
npm --prefix .agentdispatch-deps/adapter-aws-agentcore run build
34+
npm --prefix .agentdispatch-deps/adapter-aws-agentcore pack --pack-destination "$PWD/.agentdispatch-deps"
1635
- run: npm install
36+
- run: npm install --no-save .agentdispatch-deps/agent-dispatch-core-*.tgz .agentdispatch-deps/agent-dispatch-adapter-aws-agentcore-*.tgz
1737
- run: npm run typecheck
1838
- run: npm test --if-present
1939
- run: npm run build

0 commit comments

Comments
 (0)