From 64d79801a385e64cb7e54ce392f5d1251db17f71 Mon Sep 17 00:00:00 2001 From: Shane32 Date: Thu, 16 Jan 2025 00:30:40 -0500 Subject: [PATCH] update workflow --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69e197a0..2b0cc07f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,8 +117,8 @@ jobs: echo "NativeAOT sample did not spin up in time." exit 1 - name: Run GraphQL query against NativeAOT sample - shell: bash working-directory: samples/Samples.NativeAot + shell: bash run: | # Run a simple GraphQL query. Adjust the request as needed for your sample. curl -X POST -H "Content-Type: application/json" \ @@ -126,9 +126,11 @@ jobs: http://localhost:5000/graphql > nativeaot_response.json - name: Print query result working-directory: samples/Samples.NativeAot + shell: bash run: cat nativeaot_response.json - name: Compare query result to expected response working-directory: samples/Samples.NativeAot + shell: bash run: | jq . nativeaot_response.json > actual-response.json jq . sample-response.json > expected-response.json