Skip to content

Commit 06fb886

Browse files
authored
ci: add package install sanity check to build-and-test (#590)
1 parent 41b6c74 commit 06fb886

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ jobs:
5050
- name: Pack tarball
5151
if: matrix.node-version == '20.x'
5252
run: npm pack
53+
- name: Install from tarball
54+
if: matrix.node-version == '20.x'
55+
run: npm install -g aws-agentcore-*.tgz
56+
- name: Verify packaged CLI runs
57+
if: matrix.node-version == '20.x'
58+
run: |
59+
agentcore --version
60+
agentcore create --name sanitytest --language Python --framework Strands --model-provider Bedrock --memory none --json
61+
test -f sanitytest/agentcore/agentcore.json
5362
- name: Upload tarball artifact
5463
if: matrix.node-version == '20.x'
5564
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)