-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.56 KB
/
ci.yml
File metadata and controls
42 lines (39 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: agent-dispatch/core
path: .agentdispatch-deps/core
- uses: actions/checkout@v4
with:
repository: agent-dispatch/adapter-aws-agentcore
path: .agentdispatch-deps/adapter-aws-agentcore
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Pack current core
run: |
npm --prefix .agentdispatch-deps/core ci
npm --prefix .agentdispatch-deps/core run build
(cd .agentdispatch-deps/core && npm pack --pack-destination "$GITHUB_WORKSPACE/.agentdispatch-deps")
- name: Pack current AWS adapter
run: |
npm --prefix .agentdispatch-deps/adapter-aws-agentcore ci
npm --prefix .agentdispatch-deps/adapter-aws-agentcore install --no-save --package-lock=false "$PWD"/.agentdispatch-deps/agent-dispatch-core-*.tgz
npm --prefix .agentdispatch-deps/adapter-aws-agentcore run build
(cd .agentdispatch-deps/adapter-aws-agentcore && npm pack --pack-destination "$GITHUB_WORKSPACE/.agentdispatch-deps")
- run: npm ci
- run: npm install --no-save --package-lock=false .agentdispatch-deps/agent-dispatch-core-*.tgz .agentdispatch-deps/agent-dispatch-adapter-aws-agentcore-*.tgz
- run: npm run typecheck
- run: npm test --if-present
- run: npm run build