-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,15 +122,18 @@ jobs: | |
working-directory: ${{ env.frontend-directory }} | ||
run: pnpm exec playwright install | ||
- name: Build the Docker app | ||
run: docker compose -f docker-compose-build.yml up -d | ||
run: | | ||
rm -rf db | ||
mkdir db | ||
docker compose -f docker-compose-build.yml up -d | ||
- name: Create backend environment variables file | ||
working-directory: ${{ env.backend-directory }} | ||
run: | | ||
touch .env | ||
export $(grep -v '^#' .env | xargs) | ||
- name: Config the Docker app | ||
run: | | ||
sleep 180 # 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 "[email protected] DJANGO_SUPERUSER_PASSWORD=1234 poetry run python manage.py createsuperuser --noinput && exit 0" | ||
- name: Run tests | ||
working-directory: ${{ env.frontend-directory }} | ||
|
@@ -261,7 +264,7 @@ jobs: | |
export $(grep -v '^#' .env | xargs) | ||
- name: Config the Docker app | ||
run: | | ||
sleep 180 # 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 "[email protected] 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 }} | ||
|