Skip to content

Commit

Permalink
Output docker logs on error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdivitotawela committed Jun 18, 2024
1 parent c4fb2c0 commit d216a8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/matrix-docker-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ jobs:
sleep $SLEEP
done
docker rm -f ${{ env.CONTAINER_NAME }} > /dev/null
docker stop ${{ env.CONTAINER_NAME }} > /dev/null
if [[ $success != "true" ]]
then
echo "Could not find the log message 'Ethereum main loop is up'"
docker logs ${{ env.CONTAINER_NAME }}
echo "::error Could not find the log message 'Ethereum main loop is up'"
exit 1
fi
exit 0
Expand Down

0 comments on commit d216a8e

Please sign in to comment.