Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane32 committed Jan 16, 2025
1 parent b5da27b commit 64d7980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,20 @@ 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" \
-d @sample-request.json \
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
Expand Down

0 comments on commit 64d7980

Please sign in to comment.