diff --git a/.github/workflows/ci-test-with-documentdb.yml b/.github/workflows/ci-test-with-documentdb.yml index 48529c7dab..55c75bdea0 100644 --- a/.github/workflows/ci-test-with-documentdb.yml +++ b/.github/workflows/ci-test-with-documentdb.yml @@ -36,6 +36,11 @@ jobs: # Opens tcp port 6379 on the host and service container - 6379:6379 + mongo: + image: mongo + ports: + - 27017:27017 + steps: - name: Set up Depot CLI uses: depot/setup-action@v1 @@ -230,6 +235,10 @@ jobs: working-directory: app/client run: | yarn install --immutable + + - name: Wait until appsmith server is healthy + run: | + bash scripts/health_check.sh - name: Setting up the cypress tests if: steps.run_result.outputs.run_result != 'success' @@ -330,10 +339,6 @@ jobs: else echo "COMMIT_INFO_MESSAGE=$(echo \"${{ env.EVENT_COMMITS }}\" | awk -F '\\\\n' '{print $1}' | sed 's/^\"//')" >> $GITHUB_ENV fi - - - name: Wait until appsmith server is healthy - run: | - bash scripts/health_check.sh - name: Run the cypress test if: steps.run_result.outputs.run_result != 'success' && steps.run_result.outputs.run_result != 'failedtest'