Skip to content

Commit

Permalink
Update startup-tests.yml
Browse files Browse the repository at this point in the history
increase timeout
show warning to guide resolution
  • Loading branch information
eric-intuitem committed Nov 29, 2024
1 parent 4235018 commit a65cc2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/startup-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
export $(grep -v '^#' .env | xargs)
- name: Config the Docker app
run: |
sleep 60 # give the migrations time to finish (included in the up on the previous step)
sleep 120 # give the migrations time to finish (included in the up on the previous step)
docker compose -f docker-compose-build.yml exec backend /bin/bash -c "DJANGO_SUPERUSER_EMAIL=admin@tests.com DJANGO_SUPERUSER_PASSWORD=1234 poetry run python manage.py createsuperuser --noinput && exit 0"
- name: Run tests
working-directory: ${{ env.frontend-directory }}
Expand All @@ -142,6 +142,7 @@ jobs:
exit 0
else
echo "Failure"
echo "Check if migrations are not too long"
exit 1
fi
Expand Down Expand Up @@ -258,7 +259,7 @@ jobs:
export $(grep -v '^#' .env | xargs)
- name: Config the Docker app
run: |
sleep 60 # give the migrations time to finish (included in the up on the previous step)
sleep 120 # give the migrations time to finish (included in the up on the previous step)
docker compose -f enterprise/docker-compose-build.yml exec backend /bin/bash -c "DJANGO_SUPERUSER_EMAIL=admin@tests.com DJANGO_SUPERUSER_PASSWORD=1234 poetry run python manage.py createsuperuser --noinput --settings=${{ env.enterprise-backend-settings-module }} && exit 0"
- name: Run tests
working-directory: ${{ env.frontend-directory }}
Expand All @@ -270,5 +271,6 @@ jobs:
exit 0
else
echo "Failure"
echo "Check if migrations are not too long"
exit 1
fi

0 comments on commit a65cc2e

Please sign in to comment.