Skip to content

Commit

Permalink
chore: add 200 check in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Dec 6, 2023
1 parent 8ec3413 commit d90de2c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ jobs:

- name: Run all make stuff
run: make all

- name: Check 200 on port
run: |
# Wait for stack to come up
sleep 30
# Perform the request and extract the status code
status_code=$(curl -o /dev/null -s -w "%{http_code}\n" "http://localhost")
# Check if the status code is 200
if [ "$status_code" -eq 200 ]; then
echo "Success: HTTP status code is 200"
else
echo "Failure: HTTP status code is not 200, it's $status_code"
exit 1
fi

0 comments on commit d90de2c

Please sign in to comment.