Skip to content

Commit

Permalink
try: log docker output 3
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Nov 2, 2023
1 parent 9b9e5bf commit bfe38b1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/docker-build-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@ runs:
shell: bash -l {0}
run: |
docker run -d -p 3001:3001 --name=materials-designer materials-designer:latest
echo "Waiting for application to start..."
timeout=60
while ! docker logs materials-designer 2>&1 | grep -m 1 "Compiled"; do
if ((timeout-- == 0)); then
echo "Application failed to start within expected time."
exit 1
fi
failed=$(docker logs materials-designer 2>&1 | grep "Failed" || true)
if [[ -n "$failed" ]]; then
echo "An error occurred:"
echo "$failed"
exit 1
fi
sleep 5
done
echo "Application started. Running tests..."
# Here you would run your docker command for tests, e.g.:
# docker run --network=host materials-designer-test
- name: Log output
shell: bash -l {0}
Expand Down

0 comments on commit bfe38b1

Please sign in to comment.