From a36f2b0cc64d37bdb851e6bd86dfe3c4937d00fb Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Tue, 23 Jan 2024 21:02:47 +0530 Subject: [PATCH] Enhancements to backend setup of Cypress CI (#7051) * Enhancements to backend setup of Cypress CI * Remove custom wait for migrations script --- .github/workflows/cypress.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index 001ceda68dc..6ae632de848 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -32,18 +32,7 @@ jobs: run: | cd care make docker_config_file=docker-compose.pre-built.yaml up - while docker compose exec celery-beat bash -c "python manage.py showmigrations 2>/dev/null | cat | grep -q '\[ \]'"; do - >&2 echo "Migrations are not yet applied - sleeping" - sleep 10 - done - echo "Migrations are applied" - cd .. - - - name: Load dummy data into care backend 📂 - run: | - cd care - docker compose exec backend bash -c "python manage.py load_dummy_data" - docker restart care-backend-1 + make docker_config_file=docker-compose.pre-built.yaml load-dummy-data cd .. - name: Wait for care to be up ♻