Skip to content

Commit

Permalink
ci: try combining tests using http_get
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Nov 8, 2024
1 parent 4e183ba commit e928344
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ jobs:
echo $TEST | grep '"config": "1"'
echo $TEST | grep '"a": "this is var a"'
TEST=$(extism call zig-out/bin/basic-example.wasm http_get --allow-host '*')
TEST=$(extism call zig-out/bin/basic-example.wasm http_get --allow-host '*' --enable-http-response-headers)
echo $TEST
echo $TEST | grep 'user=1'
echo $TEST | grep "application/json; charset=utf-8"
TEST=$(extism call zig-out/bin/basic-example.wasm greet --config user=Benjamin)
echo $TEST
Expand Down Expand Up @@ -76,6 +77,3 @@ jobs:
TEST=$(extism call zig-out/bin/basic-example.wasm nested_json --input '{"innerCount": 3}')
COUNT=$(echo $TEST | jq | grep "I'm the inner struct" | wc -l)
test $COUNT -eq 3
TEST=$(extism call zig-out/bin/basic-example.wasm http_get --input '' --allow-host jsonplaceholder.typicode.com --enable-http-response-headers --log-level debug 2>&1)
echo $TEST | grep "application/json; charset=utf-8"

0 comments on commit e928344

Please sign in to comment.