Skip to content

Commit

Permalink
Add test for cli example
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrandt committed Oct 29, 2024
1 parent c5deb00 commit bbdbe9f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -euo pipefail

export COMPONENTIZE_PY_TEST_COUNT=0
export COMPONENTIZE_PY_TEST_SEED=bc6ad1950594f1fe477144ef5b3669dd5962e49de4f3b666e5cbf9072507749a
export WASMTIME_BACKTRACE_DETAILS=1

cargo build --release

(cd examples/cli \
&& ../../target/release/componentize-py -d ../../wit -w wasi:cli/[email protected] componentize app -o cli.wasm \
&& wasmtime run cli.wasm)
7 changes: 7 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,10 @@ jobs:
- name: Test
shell: bash
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release

- uses: taiki-e/install-action@v2
with:
tool: wasmtime-cli
- name: Test examples
shell: bash
run: bash .github/workflows/examples.sh

0 comments on commit bbdbe9f

Please sign in to comment.