Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nemouet authored May 24, 2024
1 parent 73b6821 commit e27eb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
sudo docker network create mongodb_network
sudo docker run -p 27017:27017 -d --name mongo_db --network mongodb_network -v /mongodb:/docker-entrypoint-initdb.d --restart unless-stopped huyuet/mongo:5.0
sudo docker run -p 5000:5000 -d --name backend --network mongodb_network huyuet/backend-image
docker inspect backend
CONTAINER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAdress}}{{end}}' backend)
curl -X GET $CONTAINER_IP:5000/api/students
- name: Run unittest
run: python API/unit_test/test_api.py

0 comments on commit e27eb63

Please sign in to comment.