Skip to content

Commit

Permalink
fixup!test: setup mongodb server - debug
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 25, 2024
1 parent ada205b commit e52d891
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build-using-cnb-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,29 @@ jobs:
name: Testing app
shell: bash
run: |
env
env|sort
cat vcap-services-template.sh|envsubst >vcap-service.env
cat vcap-service.env
docker run -d --rm -e PORT=80 --env-file vcap-service.env -p 8080:80 --name "cnb-app" ${{env.CNB_IMAGE_NAME}}
docker logs -f cnb-app &> cnb-app.log &
docker ps -a
export APP=http://localhost:8080
curl -vvv -X POST $APP/myCollection
curl -vvv -X DELETE $APP/myCollection
exit_status=0
if ! curl -vvv -X POST $APP/myCollection;then
echo "Create failed"
exit_status=1
else
echo "Create successful"
fi
if ! curl -vvv -X DELETE $APP/myCollection;then
echo "Delete failed"
exit_status=1
else
echo "Delete successful"
fi
if nc -vz 127.0.0.1 8080;then echo "port 8080 available";else echo "port 8080 UNAVAILABLE";fi
if nc -vz 127.0.0.1 ${SERVICE_PORT};then echo "port ${SERVICE_PORT} available";else echo "port ${SERVICE_PORT} UNAVAILABLE";fi
cat cnb-app.log
-
name: Tag version ${{github.ref_name}}
if: github.ref_type == 'tag'
Expand Down

0 comments on commit e52d891

Please sign in to comment.