Skip to content

Commit

Permalink
fix(ci): ajout d'un dossier temporaire pour les tests dans la CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Jul 5, 2023
1 parent ca0f785 commit 5acb493
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .env.dev.example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ DOMIFA_ENV_ID=dev
POSTGRES_USERNAME=domifa_user
POSTGRES_PASSWORD=xxxxxxxxxxxxxxxxxxx
POSTGRES_DATABASE=domifa_dev

DOCKER_HOST_UPLOADS_FOLDER=/tmp/domifa/upload
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Create Postgres service
run: docker-compose -f ./docker-compose.tests.yml up --build --detach

- name: Create file for upload files
run: mkdir /tmp/files/

- name: Run backend tests
# run: yarn workspace @domifa/backend jest --coverage --detectOpenHandles --forceExit --runInBand
run: DISABLE_TYPEORM_CLOSE=1 yarn workspace @domifa/backend jest --coverage --detectOpenHandles --forceExit --runInBand
Expand Down
1 change: 0 additions & 1 deletion docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ services:
working_dir: /app/packages/backend
volumes:
- $APP_DIR:/app:delegated
- $DOCKER_HOST_UPLOADS_FOLDER:/files/:delegated
- $HOME/.ssh:/home/node/.ssh:ro
- $HOME/.gitconfig:/home/node/.gitconfig:ro
- $HOME/.gitignore:/home/node/.gitignore:ro
Expand Down
2 changes: 2 additions & 0 deletions packages/backend/.env.preset/local-test.preset.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ DOMIFA_CRON_EMAIL_SEND_IMMEDIATELY=false
POSTGRES_LOGGING=warn
DOMIFA_CRON_ENABLED=false
DOMIFA_SECURITY_FILES_MAIN_SECRET=9e3a70f8949abf3d0e3528c9dcb2d1e1278e4c3c9b94784efc9063ffec6f9c5b2cb9d8674f1f84ff32b6f92a1ef4f0e26dc23dbd4c15c32f9fcd41717c7b08ad

DOMIFA_UPLOADS_FOLDER="/tmp/files/"

0 comments on commit 5acb493

Please sign in to comment.