wordpress-activitypub-event.../docker-compose-test.yml
André Menrath f77f4bc017
All checks were successful
PHP Code Checker / Run PHP Code Checker (push) Successful in 42s
Unit Testing / Run phpunit tests (push) Successful in 3m55s
add forgejo actions for phpunit and phpcs
2024-09-21 11:00:33 +02:00

26 lines
543 B
YAML

version: '3'
services:
test-db:
platform: linux/x86_64
image: mariadb
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: wordpress
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3306"]
interval: 5s
timeout: 2s
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"]