Skip to content

Commit bbdbe9f

Browse files
committed
Add test for cli example
1 parent c5deb00 commit bbdbe9f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/examples.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
export COMPONENTIZE_PY_TEST_COUNT=0
6+
export COMPONENTIZE_PY_TEST_SEED=bc6ad1950594f1fe477144ef5b3669dd5962e49de4f3b666e5cbf9072507749a
7+
export WASMTIME_BACKTRACE_DETAILS=1
8+
9+
cargo build --release
10+
11+
(cd examples/cli \
12+
&& ../../target/release/componentize-py -d ../../wit -w wasi:cli/command@0.2.0 componentize app -o cli.wasm \
13+
&& wasmtime run cli.wasm)

.github/workflows/test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,10 @@ jobs:
8282
- name: Test
8383
shell: bash
8484
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release
85+
86+
- uses: taiki-e/install-action@v2
87+
with:
88+
tool: wasmtime-cli
89+
- name: Test examples
90+
shell: bash
91+
run: bash .github/workflows/examples.sh

0 commit comments

Comments
 (0)