diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index df6fda018c..5ce2e16899 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -272,27 +272,12 @@ jobs: run: | docker run -d --name talawa-admin-app-container -p 8080:8080 talawa-admin-app - - name: Check if Talawa Admin App is running - run: | - timeout=60 - while ! nc -z localhost 8080 && [ $timeout -gt 0 ]; do - sleep 1 - timeout=$((timeout-1)) - done - - if [ $timeout -eq 0 ]; then - echo "Timeout waiting for application to start" - exit 1 - fi - - # Retry curl up to 3 times with 5s delay - for i in {1..3}; do - if curl --fail --silent http://localhost:8080/index.html; then - exit 0 - fi - sleep 5 - done - exit 1 + - name: Check if Talawa Admin app starts in Docker + runs-on: ubuntu-latest + needs: [Code-Quality-Checks] + steps: + - name: Checkout the Repository + uses: actions/checkout@v4 - name: Stop Docker Container if: always()