From e9283442b059bb022231faa13d61f17899f39431 Mon Sep 17 00:00:00 2001 From: zach Date: Fri, 8 Nov 2024 15:45:21 -0800 Subject: [PATCH] ci: try combining tests using http_get --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 033e4e8..169ec4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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" \ No newline at end of file