Skip to content

Commit

Permalink
Update on_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
masayag authored Oct 29, 2023
1 parent 7047a91 commit ee46c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
compose-file: "docker-compose.yml"
down-flags: "--volumes --remove-orphans --rmi local"
test-container: "blood-info"
test-command: >
test-command: |
/bin/sh -c '
result=`wget -q -O- --no-check-certificate https://localhost:8443/stations | jq ". | length"`;
result=$(wget -q -O- --no-check-certificate https://localhost:8443/stations | jq ". | length")
if [ -n "$result" ] && [ "$result" -ne 0 ]; then
echo "Test passed: Result is not empty and not zero.";
exit 0; # Test passed
Expand Down

0 comments on commit ee46c79

Please sign in to comment.