Migraciones y testeo

This commit is contained in:
Juan Pablo Vial
2024-11-12 21:51:56 -03:00
parent e4ffcb52d8
commit c3a99d5939
9 changed files with 25658 additions and 44 deletions

29
testing.compose.yml Normal file
View File

@ -0,0 +1,29 @@
services:
testing:
profiles:
- testing
container_name: incoviba_tests
build: .
restart: unless-stopped
env_file:
- ${APP_PATH:-.}/.test.env
- ./.key.env
volumes:
- ${APP_PATH:-.}/:/code
- ./logs/test:/logs
command: [ '/code/bin/phpunit-watcher', 'watch' ]
depends_on:
- test-db
test-db:
profiles:
- testing
image: mysql:5.7
container_name: incoviba_test_db
restart: unless-stopped
env_file: ${APP_PATH:-.}/.test.db.env
volumes:
- test-db:/var/lib/mysql
volumes:
test-db: {}