- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD) - Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions - docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks - docker-entrypoint.sh: auto-generates config.inc.php from env vars, waits for MySQL, initializes DB schema idempotently - init-db.php: CLI schema installer using app's own prefix_query() logic - Persistent volumes for DB, cache, and cover images Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
800 B
YAML
38 lines
800 B
YAML
name: Integration
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 10
|
|
matrix:
|
|
php: ['7.2', '7.3', '7.4', '8.0']
|
|
|
|
steps:
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: none
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Download dependencies
|
|
uses: ramsey/composer-install@v1
|
|
with:
|
|
composer-options: --no-interaction --optimize-autoloader
|
|
|
|
- name: Start server
|
|
run: php -S 127.0.0.1:10002 tests/Integration/server.php &
|
|
|
|
- name: Run tests
|
|
env:
|
|
TEST_SERVER: 127.0.0.1:10002
|
|
run: ./vendor/bin/phpunit --testsuite Integration
|