Skip to content

Commit

Permalink
Wait for Containers to Start
Browse files Browse the repository at this point in the history
  • Loading branch information
n1tr0-5urf3r committed Jul 26, 2024
1 parent 88c7dff commit fe183d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ jobs:
run: docker-compose up -d netsim
working-directory: docker

- name: Wait for Containers to Start
run: sleep 15

- name: Test Backend
run: curl --fail http://localhost:5000/switches/active || (echo "Backend test failed" && exit 1)

- name: Test Frontend
run: curl --fail http://localhost:3000 || (echo "Backend test failed" && exit 1)
run: curl --fail http://localhost:3000 || (echo "Frontend test failed" && exit 1)

- name: Test Mininet
run: curl --fail http://localhost:5001/switches/online || (echo "Backend test failed" && exit 1)
run: curl --fail http://localhost:5001/switches/online || (echo "Mininet test failed" && exit 1)

0 comments on commit fe183d0

Please sign in to comment.