Skip to content

Commit

Permalink
Update docker-compose-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Jun 10, 2024
1 parent 74e7f3b commit 7306010
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
# Wait for a few seconds
sleep 5
- name: Test if localhost:80 responds
- name: Test if localhost:80 (WASM app) responds
run: |
# Test if the service on localhost:80 responds
http_code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:80)
Expand All @@ -33,3 +33,13 @@ jobs:
else
echo "Service responded with 200 OK"
fi
- name: Test if localhost:81 (WebApi) responds
run: |
# Test if the service on localhost:81 responds
http_code=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:81)
if [ "$http_code" -ne 200 ] && [ "$http_code" -ne 404 ]; then
echo "Service did not respond with expected 200 OK or 404 Not Found"
exit 1
else
echo "Service responded with $http_code"
fi

0 comments on commit 7306010

Please sign in to comment.