wordpress-activitypub-event.../docker-compose.yml
André Menrath 6edc402581
All checks were successful
PHP Code Checker / PHP Code Checker (push) Successful in 33s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 56s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 56s
fix docker compose file for running unit tests locally
2024-09-21 14:59:26 +02:00

29 lines
621 B
YAML

version: '3'
# This files purpose is to run the PHPunit tests locally.
services:
test-db:
image: mariadb
environment:
MARIADB_DATABASE: wordpress-test
MARIADB_ROOT_PASSWORD: wordpress-test
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 5s
interval: 4s
timeout: 5s
retries: 5
test-php:
build:
context: .
dockerfile: Dockerfile
depends_on:
test-db:
condition: service_healthy
links:
- test-db
volumes:
- .:/app
command: ["composer", "run-script", "test"]